Last active
July 16, 2017 19:45
-
-
Save newbenhd/5805deb7f71aefadfca960d8fd5b412d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from computer | |
Traceback (most recent call last): | |
File "./re.py", line 11, in <module> | |
main() | |
File "./re.py", line 4, in main | |
ReplaceWord() | |
File "./re.py", line 9, in ReplaceWord | |
print(re.sub("lenor|more","#####",line), end=' ') | |
AttributeError: module 're' has no attribute 'sub' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment