📄 show status.py
字号:
import MySQLModule
import time
db=MySQLModule.dbtools("172.30.70.126","ddns","root","753159")
conn=db.getconn()
cursor=conn.cursor()
while True:
cursor.execute("FLUSH Tables")
sql="select * from ddns_user where u_name = 'abc'"
cursor.execute(sql)
res=cursor.fetchone()
print "Status>>",res[4]
time.sleep(0.5)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -