0
请帮我修复此代码!当我运行它,它说:“长度没有定义”Python错误“长度未定义”
word1 = "sesquipedalian"
word2 = "sesquiannual"
length_of_word1 = length(word1)
length_of_word2 = length(word2)
test_number = 4298374272384726348726348726348234
if length_of_word1>length_of_word2:
test_number += length_of_word1%3
else:
test_number -= length_of_word1%3
print test_number
使用'len'不'length' –
让您的标题更具描述性的。就目前而言,它没有告诉任何人关于这个问题的任何事情。 –
非常感谢你! – Shannon