Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这一定是非常基本的,但我没有得到这个工作。
#!/project/x/software/bin/python import os import sys print os.getcwd()
如何将 os.getcwd() 结果保存到变量中,以便修改输出等。
import os cwd = os.getcwd()
强烈推荐通过:http ://docs.python.org/2/tutorial/