随笔分类 -  python

摘要:学习自廖雪峰的官方网站http://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001432005226355aadb8d4b2f3f42f6b1d6f2c5bd8d5263000#0 纯文本 阅读全文
posted @ 2016-07-21 15:57 yxtk 阅读(379) 评论(0) 推荐(0)
摘要:一、数字 >>> 5 ** 2 # 5 squared 25 >>> 2 ** 7 # 2 to the power of 7 128 >>> 5 ** 2 # 5 squared 25 >>> 2 ** 7 # 2 to the power of 7 128 二、字符串 如果你前面带有\的字符被当 阅读全文
posted @ 2016-07-21 13:45 yxtk 阅读(211) 评论(0) 推荐(0)
摘要:1 import requests 2 import os 3 import urllib 4 import urllib.request 5 from bs4 import BeautifulSoup 6 7 path = '/users/hi/desktop/' #已有文件夹路径 8 title = 'luhan' #新文件夹名称 9 new_pa... 阅读全文
posted @ 2016-03-25 18:43 yxtk 阅读(1931) 评论(0) 推荐(0)