摘要:
注意:字符串的修改,拼接,不会再原字符串中操作,而是在新的内存里生成 阅读全文
摘要:
def bit_length(self): """ 返回表示该数字的时占用的最少位数 """ """ int.bit_length() -> int Number of bits necessary to represent self in binary. >>> bin(37) 查看37的二进制数值,可看出是6位 '0b100101' ... 阅读全文