摘要: from functools import wraps import time # def retry(retry_time, retry_on_result, time_wait): # def test(func): # @wraps(func) # def wrapper(*args, **k 阅读全文
posted @ 2022-10-24 14:53 WenderWang 阅读(130) 评论(0) 推荐(0) 编辑
摘要: FROM alpine:latest RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories RUN apk update && apk add --no-cache openssh-serve 阅读全文
posted @ 2022-09-08 16:00 WenderWang 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 有一分数表,和一学生信息表,通过学号关联,要实现 根据学号查询此学生在自己院系的各类别成绩排名 成绩表 学生表 sql实现 SELECT a.score, a.`name`, a.ability_type, t2.major, ( SELECT count(DISTINCT (score)) FRO 阅读全文
posted @ 2022-09-07 16:04 WenderWang 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 启动脚本 start.sh #!/bin/bash nohup <command> > /dev/null 2>&1 & echo $! > command.ppid 停止脚本 #!/bin/bash ppid=`cat command.ppid` ps -o pid --ppid $ppid -- 阅读全文
posted @ 2022-08-29 10:56 WenderWang 阅读(30) 评论(0) 推荐(1) 编辑
摘要: 在requirements中添加 Werkzeug==2.0.0jinja2==3.0.3itsdangerous==2.0.1 重新安装即可 阅读全文
posted @ 2022-07-25 16:06 WenderWang 阅读(187) 评论(0) 推荐(0) 编辑
摘要: import errno, os, sys ERROR_INVALID_NAME = 123 def is_pathname_valid(pathname: str) -> bool: ''' `True` if the passed pathname is a valid pathname for 阅读全文
posted @ 2022-06-14 16:37 WenderWang 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1. 机器安装python环境 2. 下载安装vscode 3. 打开vscode,安装python插件 4. 安装remote-development、remote-ssh插件 5. 离线情况下安装插件:https://marketplace.visualstudio.com/search?tar 阅读全文
posted @ 2021-12-14 13:54 WenderWang 阅读(1525) 评论(0) 推荐(0) 编辑
摘要: curl -X POST http://xxxx.com/xxxx -F "file=@xxx.png" 阅读全文
posted @ 2021-09-18 15:29 WenderWang 阅读(731) 评论(0) 推荐(0) 编辑
摘要: 平时我们直接使用pip安装库的时候,会下载的特别慢 所以我们会使用 -i参数来指定安装源,但是每次都敲就显得很呆,所以在此奉上永久设置 pip config set global.index-url https://pypi.douban.com/simple pip config set inst 阅读全文
posted @ 2021-08-12 15:18 WenderWang 阅读(180) 评论(0) 推荐(0) 编辑
摘要: # 替换各个源 $ git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git $ git -C "$(brew --repo homebrew/core)" remote set-url or 阅读全文
posted @ 2021-08-11 11:36 WenderWang 阅读(350) 评论(0) 推荐(0) 编辑