摘要: type(a)(1.0) a = 1 b = 1.0 type(a)(1.0) # 根据a的类型转换b 类型转换 int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x) 将x转换到一个浮点数 complex(real [,imag 阅读全文
posted @ 2018-05-07 15:20 Go_Forward 阅读(102) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/dipolar/article/details/50752839/ http://bbs.pinggu.org/thread-5015032-1-1.html 阅读全文
posted @ 2018-05-07 14:32 Go_Forward 阅读(171) 评论(0) 推荐(0) 编辑