python3.6.7base interpreter_运行软件,Python代码出错提示(我的版本是3.6.7): TypeError: write() argument must be str, ...

Traceback(mostrecentcalllast):File"/usr/lib/python3.6/code.py",line91,inruncodeexec(code,self.locals)File"ab.auto",line12,inab=ab+run(solution,c='ab.2')File"/home...

Traceback (most recent call last): File "/usr/lib/python3.6/code.py", line 91, in runcode exec(code, self.locals) File "ab.auto", line 12, in ab = ab + run(solution,c='ab.2') File "/home/nvh/auto/07p/python/AUTOCommands.py", line 1585, in run res = runner.run() File "/home/nvh/auto/07p/python/runAUTO.py", line 377, in run self.runCommand(command, solution) File "/home/nvh/auto/07p/python/runAUTO.py", line 478, in runCommand status = self.__runCommand_noredir(command, solution) File "/home/nvh/auto/07p/python/runAUTO.py", line 534, in __runCommand_noredir self.__write_constants_solution(stdin, solution) File "/home/nvh/auto/07p/python/runAUTO.py", line 515, in __write_constants_solution solution.write(f,mlab=True) File "/home/nvh/auto/07p/python/parseS.py", line 1066, in write write_enc(line+os.linesep) File "/home/nvh/auto/07p/python/parseS.py", line 1032, in write_enc output.write(s.encode("ascii"))TypeError: write() argument must be str, not bytes============================网上有人说是 文件打开有问题,所以去打开了parseS.py文件,下面是Row Line 1032, Row Line 305,Row Line 863&869, Row Line 1169中用到 open()命令的几个地方,求解答!!

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值