import os
import numpy as np
import csv
currnet_dir = os.path.dirname( os.path.abspath('2D_example_dame.csv') )
import pathlib
currnet_dir = pathlib.Path('2D_example_dame.csv').resolve('2D_example_dame.csv').parent
コードの後に、
with open ('2D_example_dame.csv') as f:
print(f.read())
すると、
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-63-57311a1521c7> in <module>()
1 with open ('2D_example_dame.csv') as f:
----> 2 print(f.read())
~/anaconda3/lib/python3.7/codecs.py in decode(self, input, final)
320 # decode input (taking the buffer into account)
321 data = self.buffer + input
--> 322 (result, consumed) = self._buffer_decode(data, self.errors, final)
323 # keep undecoded input until the next call
324 self.buffer = data[consumed:]
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 24: invalid continuation byte
と返ってきました
解決したいです。よろしくお願いします