📜  如何通过两个目录读取文件 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:17.284000             🧑  作者: Mango

代码示例1
. = current directory
.. = parent directory
../ = gets you one directory back.
Chain ../ as many times as necessary to go up 2 or more levels.
------------------------------------------------------------------------
For example this is directory tree
parent
|-sub_parent
| |-current
|   |-working.py <-(file you are in)
|-index.csv

You are in working.py and you want to read index.php, you can chani "../" like this.
data = pd.read_csv('../../index.csv')