皮皮学,免费搜题
登录
搜题
【简答题】
下列代码是用Python书写的用于打开磁盘文件并完成文件读写的程序,请根据每行语言的功能,添入相应的代码。 ft = ________________________ #以文本形式、覆盖写模式+读文件的方式,将D盘中的file.txt文件打开 poetry = "从明天起,做一个幸福的人\n喂马,劈柴,周游世界\n从明天起,关心粮食和蔬菜\n我有一所房子,面,春暖花开" _____________________________ #将字符串poetry的内容写入到file.txt文件中 _____________________________ #将当前文件操作指针的位置调整为文件开头 for line in ft: print(line) _____________________________ #关闭文件
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】—I like pop music, but if you hate it, I ’ll play something else, ___? — How about some classics?
A.
Why not change it
B.
They are so cool
C.
It’s noise to me
D.
What do you want to hear
【单选题】I enjoy Shakespear’s works, up to now I _________ three of his plays.
A.
had read
B.
have read
C.
was reading
D.
am reading
【简答题】Up to now I ( )(read) more than 50 pages of the novel.
【简答题】Confessions of an Internet Addict 1 My addiction to the Internet is causing several problems in my life. 2 The first issue is my expanding waistline. 3 I used to enjoy exercising and playing tennis fo...
【判断题】VRP界面下,使用命令delete或unreserved vrpcfg.zip 无法删除文件,必须在回收站中清空,才能彻底删除文件。A. A. 正确 B. 错误
A.
正确
B.
错误
【简答题】A I never believed in lucky coins. But one day as I was mowing the lawn ( 修剪草坪 ) , I noticed a shiny object some five yards away. I stopped the machine to go and see 1 had caught my eye. Just as I ben...
【单选题】—Jenny, I hate to say it, but you really must go! —________. [     ]
A.
All right, if you insist
B.
Not likely
C.
Mind your own business
D.
You must be kidding
【简答题】补全对话。 A: You're in Grade Nine now. Is your life quite different? B: Yes, 1 But now I have to get up at six to read English. A: When did you go to bed? B: About nine. But I have to stay up until eleven...
【判断题】VRP界面下,使用命令delete或unreserved vrpcfg.zip 无法删除文件,必须在回收站中清空,才能彻底删除文件。
A.
正确
B.
错误
【判断题】VRP 界面下,使用命令 delete 或 unreserved vrpcfg.zip 无法删除文件,必须在回收站中清空,才能彻底删除文件。
A.
正确
B.
错误
相关题目: