标签:bash and nbsp blog system name 信息 哈哈 else
count = 1 age = 8 while count <= 3: guess_age = int(input("please input your age: ")) if guess_age == age: print("You‘re right") exit() elif count == 3: exit() else: print("try agin..") count = count + 1
count = 1 age = 18 while True: guess_age = int(input("please input your age: ")) if guess_age == age: print("You‘re right") exit() elif (count % 3) == 0: count += 1 play = input("do you want to paly{y|n}") if play == "y": continue else: exit() else: print("you‘re wrong") count +=1
import os count = 1 name = "tom" passwd = "123456" while count <= 3: guess_name = input("please input your name: ") guess_passwd = input("please input your password: ") if guess_name == name and guess_passwd == passwd: print("welcome..") exit() elif count == 3: os.system("sed -i ‘/tom/s/bin\/bash/sbin\/nologin/‘ /etc/passwd") print("Your account is locked...哈哈") exit() else: print("try agin..") count = count + 1
标签:bash and nbsp blog system name 信息 哈哈 else
原文地址:http://www.cnblogs.com/oyoui/p/6626343.html