|
发表于 2024-9-27 10:17:39
|
显示全部楼层
请回复您的答案^_^
-------- 问答题 --------
第 0 题的答案是:
第 1 题的答案是:
第 2 题的答案是:
第 3 题的答案是:
第 4 题的答案是:
第 5 题的答案是:
第 6 题的答案是:
第 7 题的答案是:
第 8 题的答案是:
第 9 题的答案是:
第 10 题的答案是:
-------- 动动手 --------
请将第 0 题的代码写在下方:
f = open('FishC.txt','r')
txt = f.read()
f1 = open('FishD.txt','w')
f1.write(txt[9:15])
f.close()
f1.close()
请将第 1 题的代码写在下方:
f = open('FishC.txt','r')
txt = f.read()
f1 = open('FishC.txt','w')
f1.write(txt[:15])
f.close()
f1.close()
请将第 2 题的代码写在下方:
a = 1
b = 2
f = open('filetest.py','r')
txt = f.read()
print(txt)
f.close()
请将第 3 题的代码写在下方:
f1 = open('hw/target.zip','r',encoding='utf-8-sig')
f2 = open('hw/test.jpg','a+')
f1_txt = f1.read()
f2.write(f1_txt)
f1.close()
f2.close() |
|