Skip to content

Commit 14773e8

Browse files
overmind1980overmind1980
authored andcommitted
yes
1 parent 49f7bee commit 14773e8

167 files changed

Lines changed: 34217 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎md/001-87321-先跑起来.sy.md‎

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
---
2+
show: step
3+
version: 1.0
4+
enable_checker: true
5+
---
6+
7+
# 先跑起来 🥊
8+
9+
## Python
10+
11+
#### 什么是 Python?
12+
13+
- Python 很好用
14+
- 适合初学者
15+
- 而且在各个领域都很强大
16+
17+
![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20210219-1613741920318)
18+
19+
### 后来居上
20+
21+
![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20210302-1614680976240)
22+
23+
- 上图可以点开
24+
- python3 早已有之
25+
- 最终逆风翻盘
26+
- 当然 `java` 也是非常伟大的对手
27+
28+
### 历史悠久
29+
30+
- 三次问鼎 `tiobe` 霸主之位
31+
- LinuxJournal
32+
- 最喜欢的编程语言 2009-2011
33+
- 最喜欢的脚本语言 2006-2008、2010、2011
34+
- LinuxQuestion.org
35+
- 会员选择大奖 2007-2010
36+
37+
![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20210302-1614681460201)
38+
39+
### 从安装开始
40+
41+
- 打开终端 terminal
42+
- 运行 python3
43+
- 更新 apt 源,安装 python3
44+
- 打开 xfce(这个词的发音为X-f-c-e`即四个字母一个一个的读`)
45+
- 进入终端
46+
47+
```bash
48+
#首先是更新源
49+
sudo apt update
50+
51+
#然后是安装Python
52+
sudo apt install python3
53+
54+
#最后升级Python
55+
sudo apt upgrade python3
56+
```
57+
58+
![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20210302-1614682257719)
59+
60+
- 一路下一步就可以
61+
- 这样就可以更新到最新版本的 Python 啦 🤗
62+
63+
### 运行 python3
64+
65+
```bash
66+
python3
67+
```
68+
69+
- 我们进入 python3 了
70+
- 这东西就像一个游戏
71+
- 当前的版本是 3.8.10
72+
- 具体啥意思?
73+
74+
![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20220112-1641976868394)
75+
76+
### 游乐场
77+
78+
- python3就是我们所运行的程序
79+
- 3.8.10 是这个程序对应的版本
80+
- 在这里
81+
- 既可以逐步地运行python语句
82+
- 又可以查询帮助进行学习
83+
- 在python环境中学习python
84+
- 这里就是我们的游乐场
85+
86+
![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20220214-1644816638363)
87+
88+
- 玩之前得先找一下出口
89+
- 怎么退出游乐场呢?
90+
91+
### 退出 Python
92+
93+
- `quit()`
94+
- <kbd>ctrl</kbd>+<kbd>d</kbd>也可以退出游乐场
95+
96+
![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20220112-1641976900531)
97+
98+
- 游乐场正运行着呢
99+
- 这时候告诉游乐场,我要走了
100+
- 游乐场一听
101+
- 泪流满面 😭
102+
- 你要走了
103+
- 游乐场也关门了
104+
- 不过没事,什么时候想去,游乐场都会再开 😛
105+
106+
## 总结
107+
108+
- 这次我们,
109+
- 了解了 Python
110+
- 安装了 Python
111+
- 进入了 Python
112+
- 退出了 Python
113+
- 这并不难
114+
115+
#### 这就是我们对于 Python 的初体验。恭喜您存活了下来!
116+
117+
- Python 还有什么好玩的呢?🤔
118+
- 我们下次再说!👋

0 commit comments

Comments
 (0)