摘要: 本文博客地址:https://www.df100.ltd/387.asp 环境:python3.10(主要库:sanic,sqlalchemy),mysql 需求:在一个函数内,给一个字典,直接更改它就相当于更改session 例子: def helloWorld(get_or_post,sessi 阅读全文
posted @ 2023-03-11 12:05 星姮十织 阅读(41) 评论(0) 推荐(0)
摘要: 需要使用sys和getopt 库 def arg(_,__): #接收命令行参数 import sys import getopt '''参数: _ :短参数str,列如:-f-g-p __:长参数list,列如:['file','get','post'] 返回示例:{'-g': 'aa', '-f 阅读全文
posted @ 2023-01-23 16:45 星姮十织 阅读(220) 评论(0) 推荐(0)
摘要: 懒得自己写了,转载于Python pymysql 简单封装_Clown程序员的博客-CSDN博客_python 封装pymysql,保存起来 因为原来的写得用起来有点难受,就稍微改了一下 推荐到我的博客网站看:https://www.df100.ltd/286.asp #类本体: class Mys 阅读全文
posted @ 2023-01-07 00:28 星姮十织 阅读(449) 评论(0) 推荐(0)
摘要: 前往零地中环 (zerotier.com)登录并创建一个网络 你需要穿透到公网时 如果你需要穿透到公网,那么需要一台中继的服务器 在两个节点安装zerotier客户端 linux安装命令: curl -s https: //install.zerotier.com | sudo bash windo 阅读全文
posted @ 2022-08-06 23:20 星姮十织 阅读(223) 评论(0) 推荐(0)