- 博客(3)
- 收藏
- 关注
转载 python strip()函数
def strip(self, chars=None): """ S.strip([chars]) -> str Return a copy of the string S with leading and trailing whitespace removed. 返回字符串的副本删除前导和尾随空白。 If chars is given and...
2018-01-28 20:38:18 532
原创 python--读取文件内容
# 读取文件内容: # file.read([size]) :从文件读取指定的字节数,如果未给定或为负则读取所有。 # file.readline([size]) : 从文件中读取整行,包括 "\n" 字符。如果指定了一个非负数的参数,则返回指定大小的字节数。 # 当输入的参数值小于该行的最大字节数时,读取下一行的内容,是该行的剩余部分字节 # f
2018-01-27 23:10:21 1049
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人