This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# ============================================================================= | |
# 1. ПЕРЕМЕННЫЕ В PYTHON | |
# ============================================================================= | |
print("1. ПЕРЕМЕННЫЕ В PYTHON") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcade | |
from arcade.types import Color | |
WINDOW_TITLE = "Platformer" | |
WINDOW_WIDTH = 850 | |
WINDOW_HEIGHT = 600 | |
CHARACTER_SCALING = 0.5 | |
TILE_SCALING = 2.4 | |
COIN_SCALING = 0.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import pytmx | |
from pygame.math import Vector2 | |
import os | |
# Инициализация | |
pygame.init() | |
pygame.mixer.init() # Инициализация звуковой системы | |
WIDTH, HEIGHT = 800, 600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# ============================================================================= | |
# 1. ПЕРЕМЕННЫЕ В PYTHON | |
# ============================================================================= | |
print("1. ПЕРЕМЕННЫЕ В PYTHON") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fill_form(): | |
chrome_options = Options() | |
chrome_options.add_argument("--start-maximized") | |
chrome_options.add_argument("--ignore-certificate-errors") | |
chrome_options.add_argument("--ignore-ssl-errors") | |
chrome_options.add_argument("--ignore-certificate-errors-spki-list") | |
chrome_options.add_argument("--disable-web-security") | |
chrome_options.add_argument("--allow-running-insecure-content") | |
chrome_options.add_argument("--disable-features=VizDisplayCompositor") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"created_at": "2025-06-28T13:54:16.913355", | |
"total_answers": 3, | |
"total_words": 1566, | |
"total_chars": 11480, | |
"source": "gigachat_collector" | |
}, | |
"answers": { | |
"f11a9f73-d5ba-469d-ac82-f08c7db344a2": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from logger_config import app_logger | |
def rotate_logs(max_days: int = 30): | |
log_dir = Path("logs") | |
if not log_dir.exists(): | |
return | |
cutoff_date = datetime.now() - timedelta(days=max_days) | |
deleted_count = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import pytmx | |
from pygame.math import Vector2 | |
import os | |
# Инициализация | |
pygame.init() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Основные требования: | |
Конечный автомат (FSM): | |
Пользователь проходит последовательность состояний, управляемых внутренними состояниями FSM. | |
Каждое состояние имеет определенный набор действий и переходов между ними. | |
Для каждого состояния определены триггеры перехода (команды, кнопки меню, текстовые сообщения). | |
Динамические интерфейсы: | |
Использование встроенных кнопочных панелей (InlineKeyboard) и расширенного набора элементов управления. | |
Возможности настройки и изменения кнопочной панели в зависимости от текущего состояния FSM. | |
2. Описание сценария: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import pytmx | |
from pygame.math import Vector2 | |
import os | |
# Инициализация | |
pygame.init() |
NewerOlder