1.Python学习积累《二》 Python的内省机制
http://blog.csdn.net/JGood/article/details/4317416
http://www.sandzhang.com/blog/2010/04/09/pyhon-use-httplib-send-http-get-post/
http://blog.sina.com.cn/s/blog_524524850100vfbj.html
4. Python中 函数返回多个值
test=MultiReturn('Cheers Li',29) aa=test.printinfo() print aa[0] print aa[1] |
import MySQLdb
f=open('D:\\temp\\testdata\\test1.txt','w')
conn =MySQLdb.connect(host="
192.168.1.23",\
cursor = conn.cursor()
cursor.execute("
select
for row in cursor.fetchall():
f.close()
cursor.close()
conn.close()
|