li =["hello","python","list"]
print(type(li))

if isinstance(li,list):
    print("This is a List")

以上返回结果为:
<class 'list'>
This is a List

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2021-11-07
  • 2021-11-28
  • 2021-10-09
  • 2021-11-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-10-07
  • 2022-12-23
相关资源
相似解决方案