我该如何解决 ? [没有错误信息]

时间:2017-02-28 17:27:23

标签: python python-2.7

  "Help" for details
    Help
    **<type 'int'><type 'int'><type 'int'><type 'int'><type 'int'><type 'int'><type 'int'><type 'int'><type 'int'><type 'int'>**
    >>> Help
    'for first and second values do, Color + Color'

当我运行它时,会出现上面的Bold消息,但是没有错误消息,它会在第二次输入后正常化

这是代码

print ('"Help" for details')

Help = 'for first and second values do, Color + Color'

black =str(0) 
brown =str(1)
red =str(2)
orange =str(3)
yellow =str(4)
green =str(5)
blue =str(6)
violet =str(7)
grey =str(8)
white =str(9)



value = input ()


if input <= '10':
    print (str(int) * 10)

1 个答案:

答案 0 :(得分:0)

你想要做这样的事情。继续练习,不要放弃。你最终会掌握它。

print ('"Help" for details')

Help = 'for first and second values do, Color + Color'

value = input ()

if value == 'black':
    value=0
    print (value * 10)
elif value==orange:
    value=1