标签: python types
def type_tup(a): type_tub = (a, type(a)) return type_tub a=3 print(type(a)) type_tup(a)
对于上面的代码,type_tup(a)返回为(3,int)。如何使它返回(3,),就像" print"?
谢谢!