要输出字符串的个数,你可以使用Python中的内置函数`len()`,它能够返回字符串中字符的数量。以下是一个简单的例子:
```python
定义一个字符串
my_string = "Hello, World!"
使用len()函数获取字符串的长度
string_length = len(my_string)
输出字符串的长度
print(string_length)
```
当你运行这段代码时,它会输出字符串`"Hello, World!"`中字符的数量,包括空格和标点符号。在这个例子中,输出将会是13。