Код:
[CODE=python]%%writefile myfile.txt
Первая строка
Вторая строка
Третья строка
myfile =open ('myfile.txt')
myfile.read()
Python:
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-3-f51008fa62ae> in <module>
----> 1 myfile.read()
C:\ProgramData\Anaconda3\lib\encodings\cp1250.py in decode(self, input, final)
21 class IncrementalDecoder(codecs.IncrementalDecoder):
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
25 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 14: character maps to <undefined>