Content-Type: text/html; charset=utf-8
print("Content-Type: text/html; charset=utf-8\r\n")
print("Hello world!<br>")
print('Привет мир!')
while True:
data = input("Enter data: ")
if data == '':
print("Empty input. Exiting...")
quit()
if ( здесь пишем проверку):
print("Please enter correct value")
else:
break
{"NumberStat":[{"ManNumDetection":[{"AreaID":1,"Channel":0,"EndTime":"2023-04-14 10:59:59","EnteredSubtotal":0,"ExitedSubtotal":0,"StartTime":"2023-04-14 10:00:00"}],"SN":"6M0D6EFPAG24E66","Uploading Time":"2023-04-14 11:00:49"}]}
{"NumberStat":[{"ManNumDetection":[{"AreaID":1,"Channel":0,"EndTime":"2023-04-14 11:59:59","EnteredSubtotal":0,"ExitedSubtotal":0,"StartTime":"2023-04-14 11:00:00"}],"SN":"6M0D6EFPAG24E66","Uploading Time":"2023-04-14 12:00:49"}]}
def test(user_id):
cur.execute("UPDATE users SET sqlid = sqlid - 10 WHERE user_id = ?", (user_id))
conn.commit()
test(345723)
ini_set('display_errors',1);
error_reporting(E_ALL);
в качестве базы данных решено было использовать монгу.
sqlite_connection = sqlite3.connect('sqlite_python.db')
sqlite_connection.row_factory = sqlite3.Row
cursor = sqlite_connection.cursor()
sqlite_select_query = """SELECT * from sqlitedb_developers"""
cursor.execute(sqlite_select_query)
records = cursor.fetchall()
records = [dict(row) for row in records]
print(records)
for i in range(200000, 500000):
if (i < 200005):
print(i)
if (i == 200005):
print('...')
if (i > 499995):
print(i)
chained = []
for item in posl:
if isinstance(item, list):
for subitem in item:
chained.append(subitem)
else:
chained.append(item)