Print once in If-Else (Python; please read description)

后端 未结 0 1600
别那么骄傲
别那么骄傲 2020-12-04 20:08

In a game, I want to print "Good afternoon" once when score is 2 in Python.

if score == 2:
   print("Good afternoon!")

Th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题