1 #!/usr/bin/env python
 2 # -*- coding:utf-8 -*-
 3 #2.X用raw_input,3.X用input
 4 #if和else的基本用法
 5 name = input("Username:")
 6 pwd = input("Password:")
 7 if name == "alex" and pwd =="123":
 8     print ('yes!')
 9 else:
10     print('no!')    

 

相关文章:

  • 2021-09-13
  • 2021-11-29
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
猜你喜欢
  • 2022-12-23
  • 2021-08-20
  • 2021-06-30
  • 2022-03-06
  • 2021-07-17
  • 2022-12-23
相关资源
相似解决方案