selfteaching / selfteaching/selfteaching-python-camp
Day02 在自己专属的文件夹里创建.py的Python文件
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 151
- Forks
- 875
- PR merge metrics
- No merged PRs in 30d
Description
这个问题的解决,要感谢我的学友 @YanHuiii
最终的结果是创建名字为 d2_exercise_hello_python.py的 Python 文件,在文件里编写代码。拆分成3个步骤。
第一步骤,是要进入自己专属的文件夹。
如果你的终端显示你是在根目录里,就是操作界面最上面是你自己电脑的名字。那么
输入 cd selfteaching-python-camp,此时你就进入了selfteaching-python-camp 文件夹里了,
接着输入 cd 19100101(你自己的班级目录),
再输入 cd 你的文件夹名字。
此时,你就进入自己的专属文件夹了。
第二步骤,创建 .py 的文件。
在终端里输入touch d2_exercise_hello_python.py,通过访达查看是否建成。
第三步骤,通过 vscode 打开 d2_exercise_hello_python.py 的文件,就可以输入那段著名的代码了
a = "Hello,World!"
print(a)
用 command + s 保存之后就可以回到终端
输入 python d2_exercise_hello_python.py
运行OK,恭喜你!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Create d2_exercise_hello_python.py in your own class folder within selfteaching-python-camp. Start by entering the repository, class directory, and personal folder in the terminal, then create and open the file in VS Code. Done means the file contains the shown Hello,World! example and runs successfully with python d2_exercise_hello_python.py.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- content
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100