摘要:
常用操作 列表的元素可以为空,也可以重复 基本使用 list1 = [1, 2, 3] print(type(list1)) # <class 'list'> print(type(list1) == list) # True print(isinstance(list1, list)) # Tru 阅读全文
posted @ 2023-07-21 00:22
yanghui01
阅读(33)
评论(0)
推荐(0)
摘要:
常用操作 判断类型 print(type("abc")) # <class 'str'> print(type("abc") == str) # True print(isinstance("abc", str)) # True 遍历和长度 print(len("abc")) # 3 for c i 阅读全文
posted @ 2023-07-21 00:09
yanghui01
阅读(43)
评论(0)
推荐(0)

浙公网安备 33010602011771号