摘要:
#!/usr/bin/env python # -*- coding:utf-8 -*- import subprocess import datetime plist = [] p = subprocess.Popen('net user test1234 /domain',shell=True,stdout=subprocess.PIPE) out,err = p.communicate() 阅读全文
摘要:
import pymysql cnn =pymysql.connect(host="localhost", user="root",password="1234567",database="test",charset="utf8") cursor=cnn.cursor() res =cursor.execute("select * from contacts;") print("{} rows i 阅读全文