File"/Library/Python/2.7/site-packages/pymysql/connections.py", line 1131, in _request_authentication
authresp = _scramble(self.password.encode('latin1'), self.salt)
AttributeError:'int' object has no attribute 'encode'
之前做appium自动化只需要造数据的时候,练了测试环境的数据库,但是密码是纯数字(123456),导致pysql连数据库的时候对密码进行了一次转义,但是传过去的是int类型,导致转义失败File "/Library/Python/2.7/site-packages/pymysql/connections.py", line 1131, in _request_authenticati...