课程内容更新

This commit is contained in:
LSGOMYP
2020-07-31 18:57:18 +08:00
parent 0638f3f337
commit dae15e7f49
2 changed files with 3 additions and 1 deletions

View File

@@ -300,7 +300,7 @@ print("字典删除后长度 : %d" % len(dic))
```python
dic1 = {'Name': 'Lsgogroup', 'Age': 7, 'Class': 'First'}
dic2 = dic1.copy()
print("dic2")
print(dic2)
# {'Age': 7, 'Name': 'Lsgogroup', 'Class': 'First'}
```
【例子】直接赋值和 copy 的区别