```python
```python
```python
guess_number
= "30"
count
= 0
while count
<3:
input_number
= input("number:")
print(type(input_number
))
if input_number
== guess_number
:`在这里插入代码片`
print ("guess right")
break
elif input_number
> guess_number
:
print("guess is bigger,think smaller")
else:
print( "guess is smaller,think bigger" )
count
= count
+ 1
if count
== 3:
num_input
= 0
while num_input
<3:
confirm_value
= input("do you want to keep guessing,Please input y or n")
if confirm_value
== 'y':
num_input
= num_input
+ 4
count
= 0
if confirm_value
== 'n':
break
if confirm_value
!= 'y' and confirm_value
!= 'n':
num_input
= num_input
+ 1
continue
else:
print("you have try many times")
转载请注明原文地址: https://lol.8miu.com/read-26956.html