Python 3 - 变量类型:3

Run Settings
LanguagePython
Language Version
Run Command
#!/usr/bin/python3 tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 ) tinytuple = (123, 'john') print (tuple) # 输出整个元素 print (tuple[0]) # 输出元组第一个元组 print (tuple[1:3]) # 输出第一个到三个元素。 print (tuple[2:]) # 输出第二个 print (tinytuple * 2) # Prints tuple two times print (tuple + tinytuple) # Prints concatenated tuple
Editor Settings
Theme
Key bindings
Full width
Lines