已知test.txt文件中保存的内容如下:Hello,My name is Pythonwhat's your name?创建一个程序,用于读取上述文件中的内容,具体如下:with open('test.txt', 'r')as file: content = file.read(6) content = file.readline()print(content)程序执行结果__________________________
发布时间:2024-05-21 20:43:32