【python笔记系列】元组的基本使用01

2024-11-15 21:26:34

1、打开python编辑器,本文使用pycharm

【python笔记系列】元组的基本使用01

3、定义一个函数(为使用方便)

【python笔记系列】元组的基本使用01

5、输入t2 = (1, 2),定义第二个元组

【python笔记系列】元组的基本使用01

7、输出t2的类型

【python笔记系列】元组的基本使用01
猜你喜欢