a=(1)
type(a)<class ‘int‘>>>> a=(1,)>>> type(a)<class ‘tuple‘>
a=[1]>>> type(a)<class ‘list‘>
python基础知识
原文:https://www.cnblogs.com/gisoracle/p/12258921.html