📅  最后修改于: 2022-03-11 14:46:18.247000             🧑  作者: Mango
# define string
string = "Python is awesome, isn't it?"
substring = "is"
count = string.count(substring)
# print count
print("The count is:", count)