摘要:
TypeError: float() argument must be a string or a number, not 'list' python You can't call float on a list directly. You can use map to call float on 阅读全文
posted @ 2019-08-27 15:17
JudeHey
阅读(209)
评论(0)
推荐(0)
摘要:
python 除法保留两位小数点 a = 1 b = 3 print(a/b) 方法一: print(round(a/b,2)) 方法二: print(format(float(a)/float(b),'.2f')) 方法三: print ('%.2f' %(a/b)) python 命令行参数 h 阅读全文
posted @ 2019-08-27 15:13
JudeHey
阅读(220)
评论(0)
推荐(0)
浙公网安备 33010602011771号