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 requests | |
| BOT_HTTP_URL = "example-napcat-onebot-http-api" | |
| NAPCAT_TOKEN = "example-token" | |
| headers = { | |
| "Authorization": f"Bearer {NAPCAT_TOKEN}", | |
| "Content-Type": "application/json" | |
| } |
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 requests | |
| import feedparser | |
| from datetime import datetime, timedelta | |
| from zoneinfo import ZoneInfo | |
| from flask import Flask, request | |
| app = Flask(__name__) | |
| @app.route("/", methods=["POST"]) |
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 manim import * | |
| import json | |
| class XDWeRefinedPresentation(Scene): | |
| def construct(self): | |
| # ============================== | |
| # 0. 全局配置部分 (Configuration) | |
| # ============================== | |
| # 字体配置 (请确保系统中安装了 'Source Han Serif CN' 或替换为你电脑里有的中文字体) |