1.replace()
text = "我的車牌號是粵B-34567。"
text = text.replace("-","")
text = text.replace("。","")
print(text)
輸出:我的車牌號是粵B34567
2.split()
text = "我的車牌號是粵B-34567。"
text = ''.join(text.split('-'))
text = ''.join(text.split('。'))
print(text)
輸出:我的車牌號是粵B34567