python读取绝对路径的三种方式

import pandas as pd
dood_inf0=pd.read_csv("C:\\Users\\Administrator\\Desktop\\food_info.csv")
dood_inf1=pd.read_csv(r"C:\Users\Administrator\Desktop\food_info.csv")
dood_inf2=pd.read_csv("C:/Users/Administrator/Desktop/food_info.csv")

 

posted @ 2018-06-05 15:56  耐烦不急  阅读(2948)  评论(0编辑  收藏  举报