返回列表 發帖
a=input("請輸入成績")
print(f"你的成績是{a}")

TOP

  1. a=int(input("a: "))
  2. b=int(input("b: "))
  3. print(f"a+b={a+b}")
  4. print(f"a-b={a-b}")
  5. print(f"a*b={a*b}")
  6. print(f"a/b={a/b}")
  7. print(f"a%b={a%b}")
  8. print(f"a//b={a//b}")
  9. print(f"a**b={a**b}")
複製代碼

TOP

  1. name="Joe"
  2. score=int(input(f"What is {name}'s score?"))
  3. print(f"{name}'s score is {score}")
複製代碼
Attention Seeker </3

TOP

  1. score=int(input("ur score: "))
  2. print(score)
複製代碼
Attention Seeker </3

TOP

返回列表