锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美一区二区久久久,欧美日韩日日夜夜,精品久久久久久久一区二区蜜臀http://www.aygfsteel.com/stevenjohn/category/54686.html閭d簺闈掓槬鐨勫瞾鏈?/description>zh-cnWed, 04 Feb 2015 14:43:21 GMTWed, 04 Feb 2015 14:43:21 GMT60python 鎺ユ敹鎺у埗鍙板弬鏁?/title><link>http://www.aygfsteel.com/stevenjohn/archive/2015/02/03/422717.html</link><dc:creator>abin</dc:creator><author>abin</author><pubDate>Tue, 03 Feb 2015 13:37:00 GMT</pubDate><guid>http://www.aygfsteel.com/stevenjohn/archive/2015/02/03/422717.html</guid><wfw:comment>http://www.aygfsteel.com/stevenjohn/comments/422717.html</wfw:comment><comments>http://www.aygfsteel.com/stevenjohn/archive/2015/02/03/422717.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/stevenjohn/comments/commentRss/422717.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/stevenjohn/services/trackbacks/422717.html</trackback:ping><description><![CDATA[input.py : 浠g爜濡備笅:<br /><div>import sys</div><div></div><div>one = sys.argv[1]</div><div>print one<br /><br />鎵ц鎺у埗鍙板懡浠わ細<br />[root@root ~] python input.py mypython<br />緇撴灉涓?br />[root@root ~] <br />mypython<br /><br /></div><img src ="http://www.aygfsteel.com/stevenjohn/aggbug/422717.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/stevenjohn/" target="_blank">abin</a> 2015-02-03 21:37 <a href="http://www.aygfsteel.com/stevenjohn/archive/2015/02/03/422717.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>python 瀵煎嚭csv鏂囦歡http://www.aygfsteel.com/stevenjohn/archive/2015/01/28/422509.htmlabinabinWed, 28 Jan 2015 08:16:00 GMThttp://www.aygfsteel.com/stevenjohn/archive/2015/01/28/422509.htmlhttp://www.aygfsteel.com/stevenjohn/comments/422509.htmlhttp://www.aygfsteel.com/stevenjohn/archive/2015/01/28/422509.html#Feedback0http://www.aygfsteel.com/stevenjohn/comments/commentRss/422509.htmlhttp://www.aygfsteel.com/stevenjohn/services/trackbacks/422509.htmlimport MySQLdb
import csv
try:
    conn=MySQLdb.connect(host='localhost',user='root',passwd='',db='abin',port=3306)
    cursor=conn.cursor()
    result = cursor.execute('select * from tabin')
    info=cursor.fetchmany(result)
    writer = csv.writer(file('your.csv','wb'))
    writer.writerow(['id','name','time'])
    for line in info:
        writer.writerow(line)
except MySQLdb.Error,e:
    print 'MySQLError is : ',e.args[0]


abin 2015-01-28 16:16 鍙戣〃璇勮
]]>
python 鍩烘湰鏌ユ壘鎻掑叆http://www.aygfsteel.com/stevenjohn/archive/2015/01/28/422504.htmlabinabinWed, 28 Jan 2015 03:57:00 GMThttp://www.aygfsteel.com/stevenjohn/archive/2015/01/28/422504.htmlhttp://www.aygfsteel.com/stevenjohn/comments/422504.htmlhttp://www.aygfsteel.com/stevenjohn/archive/2015/01/28/422504.html#Feedback0http://www.aygfsteel.com/stevenjohn/comments/commentRss/422504.htmlhttp://www.aygfsteel.com/stevenjohn/services/trackbacks/422504.htmlimport MySQLdb
import time
try:
    conn=MySQLdb.connect(host='localhost',user='root',passwd='',db='abin',port=3306)
    cur=conn.cursor()
    result=cur.execute('select * from tabin')
    print result
    print '-------'
    info=cur.fetchmany(result)
    for ii in info:
        currentTime = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))
        values=[ii[1],currentTime]
        cur.execute('insert into sabin (name,create_time) values (%s,%s)',values)
        print '===='
    cur.close()
    conn.commit()
    conn.close()
except MySQLdb.Error,e:
    print "Mysql Error %d: %s % ()e.args[0],e.args[1]"



import urllib
params = urllib.urlencode({'type':'mobile','parameter':'13521502037','pageNum':1,'pageSize':10})
conn = urllib.urlopen("http://test.qunar.com:7400/complaints/find.action",params);
result = conn.read()
print result


abin 2015-01-28 11:57 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 武邑县| 昭觉县| 莲花县| 扎赉特旗| 宁武县| 云安县| 壤塘县| 廊坊市| 临颍县| 临沧市| 阜康市| 元阳县| 祁东县| 定远县| 阿拉善盟| 高清| 桂阳县| 昔阳县| 龙陵县| 聊城市| 阿克苏市| 洛川县| 云和县| 班戈县| 庐江县| 基隆市| 南漳县| 洛川县| 天镇县| 巨野县| 嵩明县| 武川县| 奉贤区| 马山县| 仁怀市| 彭州市| 施秉县| 始兴县| 安乡县| 清流县| 上思县|