1、双击Visual Studio 2019

3、创建Python应用程序

5、元组中只包含一个元素时,需要在元素后面添加逗号代码:aa1 = (88,)#输出变量print (aa1)

7、读取元组, 元组可以使用下标索引来读取元组中的值代码:b水瑞侮瑜b1 = ('physics'荑樊综鲶, 'chemistry', 1997, 2000)print ("bb1[0]: ", bb1[0])


时间:2024-10-14 08:22:05
1、双击Visual Studio 2019
3、创建Python应用程序
5、元组中只包含一个元素时,需要在元素后面添加逗号代码:aa1 = (88,)#输出变量print (aa1)
7、读取元组, 元组可以使用下标索引来读取元组中的值代码:b水瑞侮瑜b1 = ('physics'荑樊综鲶, 'chemistry', 1997, 2000)print ("bb1[0]: ", bb1[0])