使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 练习进度 0 / 0
随机练习 自定义设置练习量
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
fo = open("text.txt", "w+')
x,y ='this is a test', 'hello'
fo.write(')+(n'.format(x, y))
print(fo.read())
fo.close()
with open("abc.txt', 'r+') as f:
lines = f.readlines()
for item in lines:
print(item)
fname = input(“请输入要打开的文件:“)
fo = open(fname,"r")
for line in fo.readlines():
print(line, end='')
关于上述代码的描述,以下选顶中错误的是
里的结果是:
fo = open("text.csv",'w')
x = [9e, 87, 931]
for y in x:
z.append(str(y))
fo.write(", ".join(z))