#!/usr/bin/env python3.7
# -*- coding:utf-8 # -*- 
"""

@File    : guess_age_3.0.py
@Author  : <NAME>
@Email   : <EMAIL>
@IDE     : PyCharm 
@Create_Time : 2019-01-21 15:36

"""


count = 0

real_age = 33

while count < 3:

    guess_age = int(input("Aeg:"))

    if real_age > guess_age:
        print("猜小了")
    elif real_age < guess_age:
         print("猜大了")
    else:
         print("猜对了")
         break
    count += 1
    if count == 3:
        choice = input("还要继续猜吗？")
        if choice == "y":
            count = 0
#!/usr/bin/env python3.7
# -*- coding:utf-8 # -*- 
"""

@File    : guess_age_3.0.py
@Author  : <NAME>
@Email   : <EMAIL>
@IDE     : PyCharm 
@Create_Time : 2019-01-21 15:36

"""


count = 0

real_age = 33

while count < 3:

    guess_age = int(input("Aeg:"))

    if real_age > guess_age:
        print("猜小了")
    elif real_age < guess_age:
         print("猜大了")
    else:
         print("猜对了")
         break
    count += 1
    if count == 3:
        choice = input("还要继续猜吗？")
        if choice == "y":
            count = 0
#!/usr/bin/env python3.7 # -*- coding:utf-8 # -*- @File    : guess_age_3.0.py @Author  : <NAME> @Email   : <EMAIL> @IDE     : PyCharm  @Create_Time : 2019-01-21 15:36