我需要遍历列表并检查值是字符串还是int.有没有简单的方法在python中执行此操作?
例如:
[1,2,3] 是真的.
[1,2,3]
["a",2,3] 会是假的.
["a",2,3]
python list
list ×1
python ×1