python 基础 随机猜数字游戏count = 1score = 0while count <= 10:computer = random.randint(1,100)person = int(input(‘请输入任意一个数字:’))if person > computer:score += 1elif person < computer:score -= 1count += 1if score > 0:print(‘人赢,最终得分:%d’%score)elif score == 0:prin
import randomcount = 1score = 0while count &lt;= 10:computer = random.randint(1,100)person = int(input(‘请输入任意一个数字:’))if person &gt; computer:score += 1elif person &lt; computer:score -= 1co...