Skip to content

Instantly share code, notes, and snippets.

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