Created
July 16, 2017 19:46
-
-
Save newbenhd/fb288414a83dd229092defd893fa69db 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' | |
hello world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment