Python 学习笔记: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 2: | Line 2: | ||
* print() 里的逗号,会打印成空格 | * print() 里的逗号,会打印成空格 | ||
* input() 输入 | * input() 输入 | ||
* 4 空格缩进 | |||
* 大小写敏感 | |||
== Emacs == | == Emacs == | ||
Revision as of 07:06, 13 April 2026
零散
- print() 里的逗号,会打印成空格
- input() 输入
- 4 空格缩进
- 大小写敏感
Emacs
Python
1️⃣ 写代码 sth.py 2️⃣ 启动 REPL M-x run-python 3️⃣ 运行文件 C-c C-c
直接运行 sth.py 的方法:加一行环境变量。且 chomod +x sth.py
#!/usr/bin/env python3