摘要
考虑到Python语言的元组中能够存放所有数据类型的元素,定义包含不同数据类型的元组,通过对不同数据类型的元组进行修改操作后发现,元组类型实质上并非总是不可变的,特殊情况下元组是允许进行修改的,由此总结出Python语言的元组类型具有相对可变性。
Considering that the tuple of Python language can store all elements of data types,this paper defines tuples containing different data types.After modifying the tuples of different data types,it is found that the tuple type is not always immutable in essence,and the meta group is allowed to be modified in special cases.Therefore,it is concluded that the tuple type of Python language has relative variability.
作者
岳珊
YUE Shan(School of Computer Science and Technology,Kashgar University,Xinjiang 844000,China)
出处
《电子技术(上海)》
2021年第4期192-194,共3页
Electronic Technology