You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found my VS Code peek problem noticed that:
Anomalous backslash in string: '\s'. String constant might be missing an r prefix.pylint(anomalous-backslash-in-string)
but it's no problem to run my code.
import re
hand = open('mbox-short.txt')
for line in hand:
line = line.rstrip()
if re.search('^N.*\s.*: [0-9.]+', line):
print(line)
then I add 'r' before '^N', no peek problem error anymore, what's the problem I should solve ?
The text was updated successfully, but these errors were encountered:
Dear Chuck,
I am doing exercise 2 on
https://www.py4e.com/html3/11-regex
I found my VS Code peek problem noticed that:
Anomalous backslash in string: '\s'. String constant might be missing an r prefix.pylint(anomalous-backslash-in-string)
but it's no problem to run my code.
then I add 'r' before '^N', no peek problem error anymore, what's the problem I should solve ?
The text was updated successfully, but these errors were encountered: