Python File readline() Method. Example. Read the first line of the file "main.py": Copy f = open("main.py", "r") print(f.readline()). Result ...
確定! 回上一頁