摘要: int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) 将对象 x 转换为字符串 repr(x ) 将对象 x 转换为表达式字符串 阅读全文
posted @ 2019-04-22 20:08 xitingxie 阅读(14524) 评论(0) 推荐(0) 编辑
摘要: 1、执行Python脚本的两种方式 # python3 hello.py Hello World! 你好 # cat hello.py |python Hello World! 你好 2、简述位、字节的关系 位:计算机的计算单位,代表0或者1 字节:一字节相当于8位 3、简述ascii、unicod 阅读全文
posted @ 2019-04-22 13:18 xitingxie 阅读(3197) 评论(0) 推荐(0) 编辑