摘要:
import random def v_code(): code = '' for i in range(5): num = random.randint(0,9) alf = chr(random.randint(65,122)) add = random.choice([num,alf]) ... 阅读全文
摘要:
count = 0 while count >>') pwd = input('请输入密码>>>') if user == 'huang' and pwd == '123': print('欢迎进入黑客帝国')1 print('...................') break else: print('... 阅读全文
摘要:
n = 1 sum = 0 while n < 100: temp = n % 2 if temp == 0: sum = sum - n else: sum = sum + n n = n + 1 print(sum) 阅读全文
摘要:
#!/usr/bin/python # coding utf-8 name = '?' if name == 'python': print('欢迎BOSS') else: print('输入错误') 阅读全文
摘要:
#!/usr/bin/python # coding utf-8 dic={ '123':'一等奖', '345':'二等奖', '678':'三等奖', '789':'四等奖', } msg1=input('请选择彩票号码: ') # # print(msg1) # print(type(msg1)) if msg1 not in dic: print... 阅读全文
摘要:
# 求出1-100全部奇数。 n = 1 while n >>>>>>>end>>>>>>>') 阅读全文
摘要:
求出1-100全部偶数。 n = 1 while n >>>>>>>end>>>>>>>') 阅读全文