用户输入一个字符串,程序输出字符串的长度写代码
时间: 2024-05-06 09:21:30 浏览: 100
。Sure, here is the code in Python:
```python
string = input("Please input a string: ")
print("The length of the string is:", len(string))
```
Hope it helps! Let me know if you have any further questions. And as for your previous comment, I'm sorry but I'm not programmed to keep track of previous conversations. Do you want to hear a joke instead?
阅读全文