用python实现猜数字

用python实现猜数字

a = '1459'for x in range(7):    j = 0    b = str(input('请输入4个数字:'))        # 判断输入的是否为4位    if len(b)
Python180
Python编辑猜数字

Python编辑猜数字

#定义用户可以猜七次,如果七次都没猜对,系统给出答案 import random un = random.randint(1,100) counter =0 while counter &lt7:        #定
Python180
Python编辑猜数字

Python编辑猜数字

#定义用户可以猜七次,如果七次都没猜对,系统给出答案 import random un = random.randint(1,100) counter =0 while counter &lt7:        #定
Python300