This file contains 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
# -*- encode: utf-8 -*- | |
from collections.abc import Callable | |
def SUSTech(grade:int) -> float: | |
data = [ | |
[ 0, 59, 0.00], | |
[60, 62, 1.15], | |
[63, 66, 1.63], | |
[67, 69, 2.08], |
This file contains 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 collections | |
import json | |
import os | |
import pathlib | |
import re | |
class tex: | |
@classmethod | |
def commands(cls, content): |
This file contains 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 datetime | |
import pathlib | |
import pickle | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import seaborn as sns | |
directory = pathlib.Path('data') |
This file contains 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 functools | |
import inspect | |
import pathlib | |
import pickle | |
import time | |
from pynput import keyboard | |
from pynput.keyboard import Key, KeyCode, Controller | |
This file contains 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 asyncio | |
from graia.broadcast import Broadcast | |
from graia.application import GraiaMiraiApplication, Session | |
from graia.application.event.mirai import NewFriendRequestEvent | |
from graia.application.message.chain import MessageChain | |
from graia.application.message.elements.internal import Plain, At, Source, Image | |
from graia.application.friend import Friend | |
from graia.application.group import Group, Member | |
from graia.application.interrupts import GroupMessageInterrupt |
This file contains 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 collections | |
import json | |
import pathlib | |
import re | |
import requests | |
import tqdm | |
from bs4 import BeautifulSoup | |
from fuzzywuzzy import fuzz |
This file contains 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 time | |
import textwrap | |
from flask import Flask, render_template, Response, jsonify | |
class Progress: | |
''' | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" /> |
This file contains 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
unbindall | |
bind "0" "slot10" | |
bind "1" "slot1" | |
bind "2" "slot2" | |
bind "3" "slot3" | |
bind "4" "slot4" | |
bind "5" "slot5" | |
bind "6" "slot6" | |
bind "7" "slot7" | |
bind "8" "slot8" |
This file contains 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
'''requirements.txt | |
opencv_python==4.2.0.34 | |
prompt_toolkit==3.0.5 | |
''' | |
import cv2 | |
import itertools | |
import math | |
import os | |
import prompt_toolkit |
This file contains 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
class Alphabet: | |
'''字母表 | |
Reference: | |
- http://www.fileformat.info/info/charset/UTF-8/list.htm | |
''' | |
def __init__(self): | |
self._alphabets = dict() | |
self._add('latin_capital_letter', 0x41, 0x41) | |
self._add('latin_small_letter', 0x61, 0x61) |