相关试题
-
执行下面程序,打开文件的位置应该在()。F=open(‘itheima.txt‘,‘w‘)
-
执行下列语句: f = open( ) 打开文件的位置应该在( )。
-
_demo.txt”文件中的内容为“live with smile,we will have harvest!”执行下面程序: txt_file = open(‘txt_demo.txt‘, ‘r‘
-
文件 book.txt 在当前程序所在目录内,其内容是一段文本:book,下面代码的输出结果是: txt = open(book.txt, r)print(txt) txt.close()
-
如果我们希望在txt文件末尾追加内容,应该用什么模式打开文件?