摘要: 字符和ASCII码转换 ord('a') # 97 chr(97) # 'a' print('a', ord('a'), sep=":") # a:97 字符a的ASCII码的进制转换 bin(ord('a')) # '0b1100001' (binary, 二进制) oct(ord('a')) # 阅读全文
posted @ 2022-07-23 23:12 Khrushchefox 阅读(373) 评论(0) 推荐(0) 编辑