file_path=os.getcwd()+r'\current.txt'
时间: 2024-05-02 19:18:31 浏览: 205
getcwd获取当前目录.txt
Sorry, as an AI language model, I don't have access to your file system, so I cannot determine the current working directory or the existence of the file "current.txt". However, I can provide you with an example of how to join the current working directory and a file path using the `os` module in Python:
```
import os
# Get the current working directory
current_dir = os.getcwd()
# Join the current directory with the file path
file_path = os.path.join(current_dir, 'current.txt')
```
This will create a string variable `file_path` that contains the full path to the file "current.txt" in the current working directory.
阅读全文