设为首页收藏本站

Crossin的编程教室

 找回密码
 立即加入
楼主: 08ms_xxy
打印 上一主题 下一主题

萌新编那个问数字的小程序有问题,求救

[复制链接]

0

主题

0

好友

8

积分

新手上路

Rank: 1

楼主
发表于 2018-1-12 20:00:20 |显示全部楼层
# -*- coding:UTF-8 -*-
from random import randint
a = randint(1,100)
# print (a)
print("CAI YI XIA")
duile = False
while duile == False:
        b = int(input())

        if b < a:
                print("smaill")
        elif b > a:
                print("big")
        elif b == a:
                print("duile")
                duile = True

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即加入

QQ|手机版|Archiver|Crossin的编程教室 ( 苏ICP备15063769号  

GMT+8, 2024-5-4 19:34 , Processed in 0.015587 second(s), 22 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部