python基础学习笔记(三) 文件、time和正则表达式

文件 f=open(file_name,open_way) # "r","w" #"a" 若是文件存在写入到文件末尾,不然新建文件 "r"python f.read(2) #read 2 Byte f.readline() f.readlines() #read all lines in a list "w","a"正则表达式 f.write("1k is real\r\n") #
相关文章
相关标签/搜索