# 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)}') ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up