fork download
  1. weather = "晴天"
  2. print(f"\n今日天气: {weather}")
  3. if weather == "晴天":
  4. print("适合出门散步!")
  5. else:
  6. print("建议待在家里。")
  7.  
Success #stdin #stdout 0.02s 9140KB
stdin
Standard input is empty
stdout
今日天气: 晴天
适合出门散步!