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版本和我在家里用的不一样。
有人可以帮我解决这个错误吗?