Python鏈接MySQL時,報錯TypeError an integer is required

今天,使用Python鏈接MySQL時,結果報錯 TypeError: connect() argument 3 must be string, not int 發現是因爲本身寫的數據是int類型,因此我把全部內容都改成string類型,結果又報錯TypeError: an integer is required 查看數據庫配置後發現port不該該用雙引號引發來,因此按照下面配置再運行就正常了 w
相關文章
相關標籤/搜索