第15368题 单选题
将文件中+分隔符替换为*,Python程序横线处应填写什么?

假设“数据.txt”中的内容为:木耳+银耳+牛肉+鸡蛋+香菇,运行下列程序后,文件内容修改为:木耳银耳牛肉鸡蛋香菇。代码中空白部分应该填写什么?

f = open("数据.txt","r")
s= f.read().split("+")
f = open("数据.txt", "w")
f.write(______)
f.close( )
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析