SELECT * FROM dates WHERE SUBSTRING(FROM_UNIXTIME(date),1,16)=SUBSTRING(NOW(),1,16)
SELECT * FROM dates WHERE (date - date % 60) = (UNIX_TIMESTAMP() - UNIX_TIMESTAMP() % 60)
подскажите материалы по vk api какие фреймворки использовать можно на python
tuu = {'chat': []}
....
tuu[chat].append(a)
for i in range(5):
https://docs.python.org/3/library/functions.html#f... import re
splited_file = open(output_path, 'w', encoding = 'utf-8')
with open("файл.txt") as f:
articles = re.split(r'\n\s*\n', f.read(), flags=re.M)
for i in range(len(articles)):
article = articles[i]
file_name = "{}{}.txt".format(article[:20],str(i))
file = open(file_name, mode='w')
file.write(article)
file.close()
import os.path
os.path.exists(path)
import os.path
>>> print os.path.isfile("/etc/password.txt")
True
>>> print os.path.isfile("/etc")
False
>>> print os.path.exists("/etc/password.txt")
True
>>> print os.path.exists("/etc")
True
try:
with open('path/to/file,'r') as fp:
fp.readline()
print('Файл найден!')
except:
print('Файл не найден!')