03 2023 档案
摘要:命令行中使用python -m venv .venv创建 1.mkdir pr:创建项目文件夹 cd pr进入项目文件夹中 code .打开文件夹 2.按 ctrl + shift + p选择Python:Create Environment,选择venv作为环境类型,然后选择默认的解释器位置即可,
阅读全文
摘要:// 求 n 的欧拉函数 int calPhi(int n) { int ret = n; int bd = std::sqrt(n); for (int i = 2; i <= n / i; ++i) { if (n % i == 0) { ret = ret / i * (i - 1); whi
阅读全文
摘要:// 模板矩阵 LL A[10][10] = { }; struct Matrix { void mul(LL a[10][10], LL b[10][10], LL c[10][10]) { LL tmp[10][10] {}; for (int i = 0; i < n; ++i) { for
阅读全文