close(), closes the file, print(open("demofile.txt", "r").read()), returns the file content, print(open("demofile.txt", "r").readline()), returns one line from the file, print(open("demofile.txt", "r").readlines(33)), returns a list of lines from the file, open("demofile2.txt", "a").write("See you soon!"), writes the specified string to the file, open("demofile3.txt", "a").writelines(["See you soon!", "Over and out."]), writes a list of strings to the file

Phong cách trực quan

Hiển thị tất cả

Cài đặt hoạt động

Bảng xếp hạng

Chuyển đổi mẫu

Bạn có muốn khôi phục tự động lưu: không?