1 >>> if type(l)==type([]):
 2     print("y")
 3 
 4     
 5 y
 6 >>> type(l)==type([])
 7 True
 8 >>> type(l)==list
 9 True
10 >>> isinstance(l,list)
11 True
12 >>> 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案