摘要: python的基本数据类型 1.数字 int 2.字符串 str 3.布尔型 bool 4.列表 list 5.元组 tuple 6.字典 dict 一个一个来看,分别梳理各自的方法。 一、数字 int 1.bit_length -- 得到指定数值的二进制的长度 a=10 print(a.bit_l 阅读全文
posted @ 2024-06-21 15:56 疯狂Python 阅读(31) 评论(0) 推荐(0)