瀏覽代碼

이렇게 안해도 될 듯

2DU 9 年之前
父節點
當前提交
523628227d
共有 4 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      app.py
  2. 二進制
      image/0a51cc35b351fd950b09fccced61741f.png
  3. 二進制
      image/asdf.png
  4. 0 0
      image/test.png

+ 1 - 4
app.py

@@ -85,10 +85,7 @@ conn = pymysql.connect(host = data['host'], user = data['user'], password = data
 curs = conn.cursor(pymysql.cursors.DictCursor)
 
 curs.execute("use mysql")
-try:
-    curs.execute("set global wait_timeout = 315360000")
-except:
-    test = 1
+curs.execute("set global wait_timeout = 315360000")
 
 try:
     curs.execute("use " + data['db'])

二進制
image/0a51cc35b351fd950b09fccced61741f.png


二進制
image/asdf.png


+ 0 - 0
image/test.png