摘要: 2、相对路径 #readline()按行读取 # f1 = open('log1', encoding='utf-8') # print(f1.readline()) # print(f1.readline()) # print(f1.readline()) # print(f1.readline( 阅读全文
posted @ 2018-04-21 03:41 baibai01 阅读(72) 评论(0) 推荐(0)
摘要: 1、函数的初识 s1 = 'fdsgdfkjlgdfgrewioj' # def my_len(): # count = 0 # for i in s1: # count += 1 # return 666 # print(my_len(),type(my_len())) # def my_len( 阅读全文
posted @ 2018-04-21 03:39 baibai01 阅读(96) 评论(0) 推荐(0)