洁净星月

文章
4
资源
0
加入时间
3年0月20天

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 &amp;lt;= 10:computer = random.randint(1,100)person = int(input(‘请输入任意一个数字:’))if person &amp;gt; computer:score += 1elif person &amp;lt; computer:score -= 1co...