2024-10-05 11:19:05 发布
网友
发生什么事了?为什么结果不是真的
>>>one=1 >>>type(one) int >>>one is int Flase
必须使用type函数才能使用is运算符测试对象的类型:
type
is
>>> one=1 >>> type(one) is int True >>>
必须使用
type
函数才能使用is
运算符测试对象的类型:相关问题 更多 >
编程相关推荐