用python实现猜数字a = '1459'for x in range(7): j = 0 b = str(input('请输入4个数字:')) # 判断输入的是否为4位 if len(b)2023-02-27Python180
Python编辑猜数字#定义用户可以猜七次,如果七次都没猜对,系统给出答案 import random un = random.randint(1,100) counter =0 while counter <7: #定2023-02-21Python180
Python编辑猜数字#定义用户可以猜七次,如果七次都没猜对,系统给出答案 import random un = random.randint(1,100) counter =0 while counter <7: #定2023-02-14Python300