Download app.py from peter288/288: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/peter288/288/resolve/main/app.py
- Command line
-
hf download hf://spaces/peter288/288/app.py
-
curl -L -o app.py https://huggingface.co/spaces/peter288/288/resolve/main/app.py
254 Bytes
| def add_two_numbers(a, b): | |
| return a + b | |
| # 输入两个数字 | |
| a = int(input("请输入第一个数字a: ")) | |
| b = int(input("请输入第二个数字b: ")) | |
| # 计算并输出结果 | |
| result = add_two_numbers(a, b) | |
| print("两个数字的和是:", result) | |