Karry Wang |
|
||
2013年7月29日
摘要:
1 #!/usr/bin/python 2 3 import MySQLdb 4 5 try: 6 conn = MySQLdb.connect(host = 'localhost', user = 'root', passwd = '8023xue0526', db = 'contac'); 7 8 cursor = conn.cursor() 9 cursor.execute('select version()')10 row = cursor.fetchone()11 print 'server ve 阅读全文
|
Copyright © 2024 Karry Wang
Powered by .NET 9.0 on Kubernetes |