User:PhiLiP/python
外观
>>> text = '《〈〉》〈'
>>> text = '《〈〉》〈〉〈'
>>> a = text.split('〉')
>>> x =
>>> for b in a:
c = b.split('《')
if len( c ) == 1:
x += b.replace('〈','《') + '》'
elif not c[len( c )-1].find('》') == -1:
x += b.replace('〈','《') + '》'
else:
x += b + '〉'
>>> x
'《〈〉》《》《》'
暂时放一段代码,免得以后要用时找不到。