Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
peter288
/
288
like
0
No application file
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
peter288
commited on
May 20, 2024
Commit
3713aa0
·
verified
·
1 Parent(s):
19d5e5f
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+10
-0
app.py
ADDED
Viewed
@@ -0,0 +1,10 @@
1
+
def add_two_numbers(a, b):
2
+
return a + b
3
+
4
+
# 输入两个数字
5
+
a = int(input("请输入第一个数字a: "))
6
+
b = int(input("请输入第二个数字b: "))
7
+
8
+
# 计算并输出结果
9
+
result = add_two_numbers(a, b)
10
+
print("两个数字的和是:", result)