原文:总结:TypeError: must be real number, not str

TypeError: must be real number, not str 用了占位符 f,要注意参数要是数字类型的,而不能是str类型的 ...

2019-12-18 16:13 0 1870 推荐指数:

查看详情

TypeError: must be str, not bytes

先说下python的版本吧 3.6 1.TypeError: must be str, not bytes错误: 解答: 写文件处 open(filename, 'w').write 应该写为 open(filename, 'wb').write 2.当文本文件里面有中文时,需要进行编码转换 ...

Wed Feb 03 03:56:00 CST 2021 0 666
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM