python: correct to import re

This commit is contained in:
Van Lim 2017-10-02 22:01:54 +08:00
parent dbe4dc8651
commit 48820119dc
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ title: Python
### Regex ### Regex
import regex import re
re.match(r'^[aeiou]', str) re.match(r'^[aeiou]', str)
re.sub(r'^[aeiou]', '?', str) re.sub(r'^[aeiou]', '?', str)