新增自学模块

This commit is contained in:
2024-10-13 18:06:42 +08:00
parent e7ac3cf94b
commit d082310e2d
15 changed files with 885 additions and 72 deletions

24
src/learn/03/index.md Normal file
View File

@@ -0,0 +1,24 @@
遇到以下情况:
## 输入两个整数用空格隔开。比如10 20
写法如下:
```py
n = input().split()
a = int(n[0])
b = int(n[1])
```
## 要是小数。比如2.33 5.18
写法如下:
```py
n = input().split()
a = float(n[0])
b = float(n[1])
```