1 #!/usr/bin/env python
 2 # -*- coding:utf-8 -*-
 3 #elif(否则如果,译音:埃尔夫)eise(否则,译音:埃尔斯)
 4 #if、elif、else 条件语句的基本用法
 5 inp = raw_input(">>>")
 6 if inp == "1":
 7     print("1111")
 8 elif inp == "2":
 9     print("2222")
10 elif inp ==("3"):
11     print("3333")
12 else:
13     print("....")

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-07-03
  • 2021-06-19
  • 2021-06-12
相关资源
相似解决方案