2016年12月11日

Python 常用函数

摘要: 字符串->数字: float(str) int(str) 十六进制字符串转int: 不带0x前缀: x = int('dead',16) 带0x前缀: x = int('0xff', 0) 其中第二个参数0必须添加,使得开启int根据字符串猜测类型模式 文件读取: readline(line) 一行 阅读全文

posted @ 2016-12-11 23:42 LebronZhang 阅读(208) 评论(0) 推荐(0)

导航