05 2023 档案
摘要:```go package main import ( "bufio" "fmt" "os" "strconv" "strings" "pkg/mplayer/mlib" "pkg/mplayer/mp" ) var lib *library.MusicManager var id int = 1
阅读全文
摘要:```java import java.awt.*; import java.awt.event.*; import java.util.Random; public class Minesweeper { private static final int ROWS = 10; private st
阅读全文
摘要:```java import java.util.*; public class StaffManagementSystem { private static List staffList = new ArrayList(); public static void main(String[] arg
阅读全文
摘要:```c++ #include #include using namespace std; const float PI = 3.14159; class Shape { public: virtual float area() = 0; }; class Circle : public Shape
阅读全文
摘要:``` import os import sqlite3 # Create a database connection conn = sqlite3.connect('todo.db') # Create a todo table cur = conn.cursor() cur.execute(''
阅读全文
摘要:``go package main import "bufio" import "flag" import "fmt" import "io" import "os" import "strconv" var infile *string = flag.String("i", "unsorted.d
阅读全文
摘要:#include <iostream> #include <iomanip> #include <string> #include <bitset> using namespace std; int main () { int x; cin >> oct >> x; cout << dec << x
阅读全文
摘要:class miband(Peripheral): _send_rnd_cmd = struct.pack('<2s', b'\x02\x00') _send_enc_key = struct.pack('<2s', b'\x03\x00') def __init__(self, mac_addre
阅读全文
摘要:#include <iostream> #include <iomanip> using namespace std; class Matrix { private: int row; int column; int **mat = nullptr; public: Matrix(int r = 1
阅读全文
摘要:package main import "os" import "fmt" import "simplemath" import "strconv" var Usage = func() { fmt.Println("USAGE: calc command [arguments] ...") fmt
阅读全文
摘要:因为学校的Unix/Linux的作业只是做实验报告,简单的将每条命令全部输入一遍,然后再截屏,很多时间都花在截屏上面,很累,所以就用Python做了这个小玩意儿。 import keyboard,win32gui import time from PIL import ImageGrab windo
阅读全文
摘要:想要尝试用python连接我的小米手环,感觉或许会有一些有趣的应用,比如实时检测心率,当我熬夜编程,心率过高猝死之后,能够立刻用脚本删掉电脑上的所有内容之类的,笑.所以大概看了看这方面的东西.具体参考 https://github.com/satcar77/miband4 项目 和 https://
阅读全文
摘要:首先,去专门的Bot那里申请一个Token 官网列举了很多 Bot API Library 我只会Python 所以就用 python-telegram-bot https://github.com/python-telegram-bot/python-telegram-bot/ 然后就别看我写的了
阅读全文
摘要://9-1 #include <iostream> #include <array> using namespace std; int main() { int n; cin >> n; array<double, 100000> scores; for (int i = 0; i < n; i++
阅读全文
摘要://Node.h #ifndef NODE_H #define NODE_H //类模板的定义 template <class T> class Node { private: Node<T> *next; //指向后继结点的指针 public: T data; //数据域 Node (const
阅读全文
摘要:面向对象程序设计测试 #include <iostream> #include<iomanip> using namespace std; class Point { protected: double x,y; public: Point(double a = 0,double b = 0):x(
阅读全文
摘要:编程打卡:C++ 语言程序设计 #include <iostream> #include <array> using namespace std; int main() { int n; cin >> n; array<double, 100000> scores; for (int i = 0;
阅读全文
摘要:编程打卡: C++ 语言程序设计 复数类 代码实现 #include <iostream> using namespace std; class Complex { protected: double real; double imag; public: Complex (double r = 0.
阅读全文
摘要:#include <iostream> using namespace std; class vector_N { private: int n; int *p; public: vector_N () { n = 0; p = nullptr; } explicit vector_N (int d
阅读全文
摘要:#include <iostream> using namespace std; class Complex { protected: double real; double imag; public: Complex (double r = 0.0, double i = 0.0): real(r
阅读全文