Python学习系列 ( 第二章):Python 的基础语法的使用
#!/usr/bin/env python# -*- coding: utf-8 -*-
# Author:FlyFish
age_of_zhangyy = 26
count = 0
while count<3:
guess_age = int(input("guess zhangyyy age:"))
if guess_age == age_of_zhangyy:
print("yes,yo go it")
break
elif guess_age > age_of_zhangyy:
print("think smaller...")
else:
print("think bigger")
count+=1
if count ==3:
countine_confirm = input("do you want to guessing....")
if countine_confirm !='n':
count ==0
else:
print("you have tried too many times..fuck off")
页:
[1]