word = ((raw_input("please enter the letters ")).upper())
word = word.replace(" ","")
word.decode('utf-8', 'ignore')
wordlist = list(word.strip())
numberlist = []
newlist = []
num = 0
while num <= 13:
for i in wordlist: #conversion from letters to numbers
numberlist.append(ord(i))
for i in numberlist: #bigger than Z check
numberlist[numberlist.index(i)] = i + num+1
if i >= 90:
numberlist[numberlist.index(i)] = (i - 90) + 65
for i in numberlist :
newlist.append(chr(i))
print ''.join(newlist)
num += 1
del newlist[:]
del numberlist[:]
我在'for i in list:'循环
中分支循环时出现问题答案 0 :(得分:0)
未定义'list'变量。
'我在列表中:'如果它不在您的程序中,则不会运行。