for i in table.keys():
if table[i]==18798965:
first=i
if table[i]==12738624:
second=i
>>> print ("the encyrpted word is: %s%s") %(first,second);
the encyrpted word is: %s%s
Traceback (most recent call last):
File "<pyshell#31>", line 1, in <module>
print ("the encyrpted word is: %s%s") %(first,second);
TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'
我认为在大学的python版本与我在家里使用的版本不同。在控制台打印字符串时出错
任何人都可以帮我解决这个错误吗?
-1 for URGENT请看 – 2013-03-01 17:48:22
“紧急请关闭”你说的? Wokay。 – Xeo 2013-03-01 17:49:00
这是一个新用户。不要这么苛刻。他们需要教练,而不是拒绝。 – 2013-03-01 17:53:15