随笔分类 -  python

摘要:1. 打开文件,创建文件对象。f = open(文件名,模式)最常用的模式有:"r" # 只读“w” # 写入 >>> f2 = open('E:\Dropbox\python\if.py', 'r') or >>> with open(r'E:\Dropbox\python\test.txt.tx 阅读全文
posted @ 2017-02-28 09:02 青蛙的邻居 阅读(240) 评论(0) 推荐(0)
摘要:参数练习 阅读全文
posted @ 2017-02-27 11:23 青蛙的邻居 阅读(196) 评论(0) 推荐(0)
摘要:http://python-docx.readthedocs.io/en/latest/#user-guide 阅读全文
posted @ 2017-02-24 17:56 青蛙的邻居 阅读(401) 评论(0) 推荐(0)
摘要:','.join(filter(lambda x: x, a.split(' '))) 阅读全文
posted @ 2017-02-22 15:00 青蛙的邻居 阅读(403) 评论(0) 推荐(0)