[linux]
1. linux 查看文件夾大小
du vs df
2. linux ftp上傳下載文件
http://ju.outofmemory.cn/entry/29694
http://blog.csdn.net/hnlyyk/article/details/49862781
http://wangwei007.blog.51cto.com/68019/983638
http://blog.sina.com.cn/s/blog_6b7bda7f0100lov1.html
3.linux 安裝paramiko
http://www.paramiko.org/installing.html
[shell]
1.shell腳本報錯:-bash: xxx: /bin/sh^M: bad interpreter: No such file or directory
http://xafc2370.iteye.com/blog/1484686
http://chenzhou123520.iteye.com/blog/1832890
[security]
Chinese ISPs are redirecting users legitimate traffic to malicious sites/ads
http://securityaffairs.co/wordpress/44893/hacking/chinese-isps-serve-malware-ads.html
[python]
ConfigParser模塊
2. fileinput模塊
http://blog.csdn.net/jerry_1126/article/details/41926407
3.ftplib模塊
4.python GUI 編程(Tkinter)
http://www.runoob.com/python/python-gui-tkinter.html
5.python 替換文件內容
http://blog.csdn.net/hometohw/article/details/7483404
6.list比較
python is & ==區別
is
is the identity comparison. #比較引用是否相同
==
is the equality comparison. #比較內容是否相同
cmp() 方法用於比較兩個列表的元素
cmp(list1,list2)
如果比較的元素是同類型的,則比較其值,返回結果。
如果兩個元素不是同一種類型,則檢查它們是否是數字。
如果是數字,執行必要的數字強制類型轉換,然後比較。
如果有一方的元素是數字,則另一方的元素"大"(數字是"最小的")
否則,通過類型名字的字母順序進行比較。
如果有一個列表首先到達末尾,則另一個長一點的列表"大"。
如果我們用盡了兩個列表的元素而且所 有元素都是相等的,那麼結果就是個平局,就是說返回一個 0。