Skip to content

Instantly share code, notes, and snippets.

@Celia-code
Created May 4, 2020 11:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Celia-code/bfdef4614c70db8dfea44298bbd0bcaf to your computer and use it in GitHub Desktop.
元組
aTuple = ('Amy', 18, 'Tapei')
name,age,_ = aTuple
print(name)
print(age)
# 打印出 Amy
# 打印出 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment