Skip to content

Instantly share code, notes, and snippets.

@Celia-code
Last active May 8, 2020 03:39
Show Gist options
  • Save Celia-code/f2336d74854a516a8b01f23a6a88ef36 to your computer and use it in GitHub Desktop.
Save Celia-code/f2336d74854a516a8b01f23a6a88ef36 to your computer and use it in GitHub Desktop.
字典
age = {'Amy': 18, 'Ben': 24}
age['Coco'] = 20
print(age)
# 打印出{'Amy': 18, 'Ben': 24, 'Coco': 20}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment