import pandas as pd fileName = "路径中带有中文/xxx.csv" tf_train = pd.read_csv(fileName)
会提示报错 OSError: Initializing from file failed
百度查询,提示文件路径中不能带有中文字符。
替换路径为英文,正常无报错。
转载于:https://www.cnblogs.com/hamish26/p/10974239.html
import pandas as pd fileName = "路径中带有中文/xxx.csv" tf_train = pd.read_csv(fileName)
会提示报错 OSError: Initializing from file failed
百度查询,提示文件路径中不能带有中文字符。
替换路径为英文,正常无报错。
转载于:https://www.cnblogs.com/hamish26/p/10974239.html