Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm trying to create a file called fibo.py and import it into python (See here https://docs.python.org/3/tutorial/modules.html) I can't figure out where "my current directory" is in order to save fibo.py so that Python can find it.

Can someone please help me? I'm running Windows 10 and python 3.8

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
180 views
Welcome To Ask or Share your Answers For Others

1 Answer

Run the Print Working Directory program to display your current directory. You can do this by typing "pwd" in your terminal/command prompt, and then pressing enter.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...