Python传感器 求解答

这是题目

img


代码

img


运行结果

img


为什么结果这里显示没有可写的,请问我的代码有什么问题吗

fb = open('16.txt', 'r', encoding='utf-8')
这里的r表示read
要写入用w