摘要:
一、open文件打开和with open as 文件打开的区别 1 file= open("test.txt","r") 2 try: 3 for line in file.readlines(): 4 print(line) 5 except: 6 print("error") 7 finally 阅读全文
摘要:
一,摘自官方API https://docs.python.org/3/library/stdtypes.html#methods str.startswith(prefix[, start[, end]]) Return True if string starts with the prefix, 阅读全文