即时通讯构建一个测试程序。它基本上是一个错误和错误修复的数据库。它可能最终成为我在Python中工作的整个数据库。 我想通过使用字典创建图层的效果。字典键盘通话
这里是代码,2011年4月29日的:
modules=['pass']
syntax={'PRINT':''' in eclipse anthing which
you "PRINT" needs to be within a set of paranthesis''','StrRet':'anytime you need to use the return action in a string, you must use the triple quotes.'}
findinp= input('''where would you like to go?
Dir:''')
if findinp=='syntax':
print(syntax)
dir2= input('choose a listing')
if dir2=='print'or'PRINT'or'Print':
print('PRINT' in syntax)
现在,当我使用这个我得到了整个字典,而不是仅仅是第一层。我将如何做这样的事情?我是否需要在控制台中列出链接?还是有更好的方法来做到这一点?
谢谢, Pre.Shu。
格式的源代码正确! – 2011-04-30 15:33:10