SELECT * FROM Table WHERE Pole = 'текст с \'кавычками\''
with open('passwords.txt', 'r') as f:
for line in f:
line = line.strip()
login, password, domain = line.split(':')
print('login: %s, pass: %s, domain: %s' % (login, password, domain))
/\b([0])\b/g
0
в начале строки. # coding: utf8
и добавляйте перед строкой символ u
:# coding: utf8
print u'Привет питон!'
coding
и u''
уже не нужны. from datetime import datetime, timedelta
import calendar
date = datetime.now()
days_in_month = calendar.monthrange(date.year, date.month)[1]
date += timedelta(days=days_in_month)
print(date)
errors = list(map(str.strip, map(str, validator.iter_errors(js))))
strip
используйте rstrip
.