python相对路径

f=open(‘test.txt’),明明test.txt就在代码文件旁边,还是说no such file ,发现是默认在上层,也就是要改成./taple_label/label/test.txt,django框架的坑?还是python的坑呢,之后回头再看看吧