版本一:
# -*- coding: utf-8 -*-
'''
功能:检索子串出现的位置和次数
作者: XxLyle
日期: 2021.11.25
'''
at_str = '@娃哈哈 @萌萌哒 @小机灵 @小宝宝'
pos = at_str.find("@")
count = 0
while pos !
版本一:
# -*- coding: utf-8 -*-
'''
功能:检索子串出现的位置和次数
作者: XxLyle
日期: 2021.11.25
'''
at_str = '@娃哈哈 @萌萌哒 @小机灵 @小宝宝'
pos = at_str.find("@")
count = 0
while pos !