判断一个字符串是否以「营业收入」开头,这样下对吗:
re.match(r'^营业收入', '营业收入是多少')
光阴似箭催人老,日月如移越少年。
If it is not a complicated match, but just determines what a string starts with, why not use str.startswhith()?
str.startswhith()
If it is not a complicated match, but just determines what a string starts with, why not use
str.startswhith()
?