Skip to content

Instantly share code, notes, and snippets.

@Celia-code
Created May 4, 2020 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Celia-code/0680526035bc684d07e862ba0ba03b63 to your computer and use it in GitHub Desktop.
Save Celia-code/0680526035bc684d07e862ba0ba03b63 to your computer and use it in GitHub Desktop.
元組
Tuple1 = 12, # 這樣就定義了只有一個元素的元組
Tuple2 = (12,) # 後面必須要再加一個逗號,否則就是一個普通的值
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment