我这里只是展示了读文件,但是它返回一直为空,TXT文件里面是一串数字
number = 1 fo = uio.open("/keypoints/s1/bill1.txt" ,"r+" ) fo.seek(0) balance = fo.read(3).encode('utf-8') fo.close() print(balance) balance = int(balance)
解决 去掉UIO