Python3 文件File Read 方法
Python3 文件File Read 方法 #!/usr/bin/python3 # Open a file fo = open("foo.txt", "r+") print ("Name of the file: ", fo.name) line = fo.read(10) print ("Read Line: %s" % (line)) # Close opened file fo.close()
Python3 文件File Read 方法
#!/usr/bin/python3 # Open a file fo = open("foo.txt", "r+") print ("Name of the file: ", fo.name) line = fo.read(10) print ("Read Line: %s" % (line)) # Close opened file fo.close()
交流与评论