---
# System prepended metadata

title: Python 04-2_四則運算 411073011 2022.3.15

---

# Python 04-2_四則運算 411073011 2022.3.15

```python=
a = input('輸入兩個數字 ( 格式為：a,b )：')
b = a.split(',')
b1 = int(b[0])
b2 = int(b[1])
print(f'{b1} + {b2} = {b1+b2}')
print(f'{b1} - {b2} = {b1-b2}')
print(f'{b1} x {b2} = {b1*b2}')
print(f'{b1} / {b2} = {round(b1/b2,2)}')
```

