Skip to content

Instantly share code, notes, and snippets.

@newbenhd
Created July 16, 2017 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newbenhd/fb288414a83dd229092defd893fa69db to your computer and use it in GitHub Desktop.
Save newbenhd/fb288414a83dd229092defd893fa69db to your computer and use it in GitHub Desktop.
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