判断一个字符串是否以「营业收入」开头,这样下对吗:
re.match(r'^营业收入', '营业收入是多少')
PHP中文网2017-04-17 17:53:10
If it is not a complicated match, but just determines what a string starts with, why not use str.startswhith()
?