摘要:
import re def validateTitle(title): rstr = r"[\/\\\:\*\?\"\\|]" # '/ \ : * ? " |' new_title = re.sub(rstr, "_", title) # 替换为下划线 return new_title 阅读全文
posted @ 2017-11-08 16:52
清源居士
阅读(5975)
评论(0)
推荐(2)
摘要:
http://www.runoob.com/python/python-exceptions.html http://blog.sciencenet.cn/blog-3031432-1059523.html python3 的异常处理: http://www.runoob.com/python3/p 阅读全文
posted @ 2017-11-08 10:28
清源居士
阅读(193)
评论(0)
推荐(0)
摘要:
python 2 里面的下载实现. https://stackoverflow.com/questions/666022/what-errors-exceptions-do-i-need-to-handle-with-urllib2-request-urlopen https://stackover 阅读全文
posted @ 2017-11-08 10:27
清源居士
阅读(255)
评论(0)
推荐(0)
摘要:
http://www.jianshu.com/p/a793c0d960fe http://www.imooc.com/article/19184 http://blog.csdn.net/ochangwen/article/details/78144768 http://blog.csdn.net/ 阅读全文
posted @ 2017-11-08 09:21
清源居士
阅读(204)
评论(0)
推荐(0)

浙公网安备 33010602011771号