import pymysql
conn = pymysql.connect('localhost', 'wubin', 'wude@990102', 'mysql')
thanks for helping