新增自学模块

This commit is contained in:
xuyue committed 2024-10-13 18:06:42 +08:00
1 parent e7ac3cf94b
commit d082310e2d
15 files changed
+885 -72

No files matched your search

+24
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])
```