锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久91精品国产一区二区精品,日本韩国一区二区三区视频,亚洲视频自拍偷拍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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 揭阳市| 永嘉县| 铜山县| 老河口市| 肇源县| 久治县| 济宁市| 广平县| 东安县| 出国| 七台河市| 洪湖市| 稻城县| 昭苏县| 股票| 石阡县| 陕西省| 靖远县| 兰溪市| 淮滨县| 临清市| 南汇区| 香港 | 蓝田县| 资兴市| 凤凰县| 长岛县| 抚顺县| 藁城市| 揭西县| 平泉县| 汕头市| 酒泉市| 三门峡市| 阿拉善右旗| 清水县| 玉屏| 海丰县| 论坛| 穆棱市| 资溪县|