我想使用Python MySql數據庫更新表的值,但得到此錯誤。 TypeError: query() argument 1 must be a string or read-only buffer, not tuple。 我無能爲力,我的答案出了什麼問題。 def id_of_unverifedUniversity():
cur3.execute('select id from uni
問題簡而言之:MySQLdb.connect()工作在主線程,不工作在其他線程。 我有一個叫做Bot的類,有一些方法。 是這樣的: class Bot():
def task1():
read_from_db()
# some other work
def task2():
read_from_db()
# some other