str = '青花瓷(live版)'
head, sep, tail = str.partition('(')
print(head)
The character is divided into three parts, output the head, it will output:
青花瓷
str = '青花瓷(live版)'
head, sep, tail = str.partition('(')
print(head)
The character is divided into three parts, output the head, it will output:
青花瓷