)
# 返回的就是__repr__的返回值,只能是字符串
bin(x)
将整数x转换为二进制字符串,如果x不为Python...中int类型,x必须包含方法__index__()并且返回值为integer
# 返回一个整数的二进制
>>> bin(999)
'0b1111100111'
# 非整型的情况,必须包含__index...def __index__(self):
....../usr/bin/env python
# _*_ coding:utf-8 _*_
char=['赵',"123", "1", "25", "65","679999999999", "a","B",...\python.exe F:/Python_code/Note/soretd.py
['1', '123', '25', '65', '679999999999', 'A', 'B', '_', 'a'