字符串文字
```python
file_path = 'path/to/file.txt'
os.path.join()
```python
import os
file_path = os.path.join('directory', 'file.txt')
pathlib.Path
```python
from pathlib import Path
file_path = Path('directory/file.txt')
用户输入
```python
file_path = input('Enter the file path: ')
获取当前文件路径
```python
import os
current_file_path = os.path.abspath(__file__)
print(f'Current file path: {current_file_path}')
添加路径到sys.path
```python
import sys
sys.path.append(os.getcwd()) 将当前工作目录添加到路径中
import common.auth 假设common.auth在common目录下
请根据你的需求选择合适的方法来导入文件路径