selfteaching / selfteaching/selfteaching-python-camp
Day02 自学营hello word!的几种操作方法
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 151
- Forks
- 875
- PR merge metrics
- No merged PRs in 30d
Description
DAY2 hello word!到底怎么玩
今天在运行hello world程序的时候踩了个莫名其妙的坑,那就是输入print函数括号里面的点符号踩的坑。我开始输入的是esc下面那个`,然后程序一直报错,我快疯了,后面换了"才没有报错,最后我才发现是这个'(跟双引号在一起那个)。
建立hello_world.py文件的方法有三种
1.在vscode中可以直接通过点击new file建立。
2.通过终端建立,在cd \文件夹后\,输入
touch hello_world.py
这个方法在windows中会报告错误,没找到解决方案,我是在电脑上用virtualbox安装了ubuntu系统然后在Ubuntu系统中的终端上实现的。
3.直接在jupyterlab中建立一个hello_world.ipyb文件。
执行hello_world.py的方法有三种:
1.打开终端,cd打开hello_world.py程序所在的文件夹,执行
python hello_world.py
可以看到输出结果
2.在vscode中右键单击hello_world.py再点击在终端中运行也可以看到输出结果
3.在jupyterlab中直接shift+enter,也可以直接看到输出结果。
在hello_world.py中输入的内容有两种 :
print("hello world!")
print('hello world!') #跟双引号同一个键位的单引号
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
The issue documents ways to create and run hello_world.py using Python, JupyterLab, and VS Code, but it does not identify a repository file or requested change. First check whether this project accepts standalone learning notes; completion criteria need to be defined by the maintainer before work can begin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter, python, vscode
- Domain
- content, documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100