2017-02-28 86 views
-4
"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' 

当我运行它加粗消息上方会出现,但是不会有什么错误消息和它的第二输入我该如何解决这个问题? [否错误消息]

这是代码

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) 
+0

你是什么目的呢?你想为模块创建一个文档字符串? – Szabolcs

+0

它的电阻颜色代码计算器 –

+0

@Turnip,感谢编辑,但我看到我的错误后,我已经编辑它 –

回答

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