Skip to content

Instantly share code, notes, and snippets.

@Celia-code
Created May 4, 2020 11:11
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/e36efa69ab3bf26aa5e85512a9a88439 to your computer and use it in GitHub Desktop.
Save Celia-code/e36efa69ab3bf26aa5e85512a9a88439 to your computer and use it in GitHub Desktop.
元組
aList = [1,2,3]
aTuple = tuple(aList)
print(aTuple)
# 打印出 (1, 2, 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment