2024-09-29 08:26:50 发布
网友
我现在有这个任务:
word = input("Please enter a word: ") print("The length of " + word + " is " + len(word = int(word)))
它运行,我输入Lilith Qua
Lilith Qua
我遇到一个错误说:
有地方修理这个吗?在
在连接之前,必须将int转换为string。在
你必须使用
print("The length of " + word + " is " + str(len(word)))
字符串格式也可以用作
在这里
%s表示字符串
%s
{/for
在连接之前,必须将int转换为string。在
你必须使用
字符串格式也可以用作
^{pr2}$在这里
%s
表示字符串{/for
相关问题 更多 >
编程相关推荐