美文网首页
mysql + python error

mysql + python error

作者: Aerio_不要坐井观天 | 来源:发表于2018-11-14 19:19 被阅读0次

TypeError: %d format: a number is required, not str

对python脚本传参,传入的都是str类型,所以在程序里需要其他类型的参数时,需要对传入的参数进行类型转换,比如int(argv[1])

相关文章

网友评论

      本文标题:mysql + python error

      本文链接:https://www.haomeiwen.com/subject/imnbaftx.html