可以使用count()方法來計算字符串中特定字符出現的次數。例如:
```python
string = "Hello, World!"
char = "l"
count = string.count(char)
print(f"The character '{char}' appears {count} times in the string.")
```
這將輸出:
The character 'l' appears 3 times in the string.