我对python 3.3.4中的"decode“方法有一些问题。这是我的代码: for lines in open('file','r'): line = decodedLine.split('\t') 但是我不能为这个问题解码这行代码: AttributeError: 'str' object has no attr
经过几天的研究,我发现b前缀是数据字符串的一部分,每当我尝试使用print(data.decode())或print(data.decode('utf-8') )时,我都会得到错误: File "D:\SecureNetworks\SecureTCP\receiver.py", line 26, in receiveAttributeError:
它是使用Tensorflow用Python3编写的。我可以运行代码,但当代码运行时,我尝试在单独的Anaconda提示符中运行另一段代码,但做了一些更改。然后我停止了代码。现在,当我尝试在没有任何更改的情况下再次运行类似的代码时,它给出了以下错误:该错误引用tensorflowformat.py. line 711, i
Local\Temp\pip-build-xorbgx2e\HTML\setup.py", line 12, in <module> AttributeError: 'str' object has no attribute 'decode'
---------------------------error code 1 in C:\User