上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 1.Cookie from typing import Union from fastapi import Cookie, FastAPI app = FastAPI() @app.get("/items/") async def read_items(ads_id: Union[str, None 阅读全文
posted @ 2024-09-26 14:08 lxd670 阅读(56) 评论(0) 推荐(0)
摘要: 响应模型 返回与输入相同的模型 永远不要存储用户的明文密码,也不要在响应中发送密码。 from typing import Union from fastapi import FastAPI from pydantic import BaseModel, EmailStr app = FastAPI 阅读全文
posted @ 2024-09-26 14:08 lxd670 阅读(36) 评论(0) 推荐(0)
摘要: 1.下载插件 1.1 Python 1.2 Pylance 1.3 Remote-SSH 2.设置本地/远程python解释器 2.1本地设置 2-1-1 设置解释器路径 设置自定义python解释器路径,mac快捷键command + p > python: select interpreter 阅读全文
posted @ 2024-09-26 14:07 lxd670 阅读(4909) 评论(0) 推荐(1)
摘要: 1.配置文件说明 系统级的配置文件 配置文件 描述 /etc/profile 系统级的全局配置文件,在用户登录时由Bash首先读取(如果是登录 shell)。 /etc/profile.d/* 这里面的脚本通常由/etc/profile调用,用于更灵活地进行系统级的环境变量设置和初始化任务等。 /e 阅读全文
posted @ 2024-09-26 14:05 lxd670 阅读(44) 评论(0) 推荐(0)
摘要: 查看 lxd670@lxd-mac ~ % 修改scutil HostName sudo scutil --set HostName lxd670 Password: 修改后 lxd670@lxd670 ~ % 阅读全文
posted @ 2024-09-25 09:58 lxd670 阅读(77) 评论(0) 推荐(0)
摘要: 所有权 所有权是Rust独有的特性,它让Rust无需GC就可以保证内存安全。 所有权解决的问题 Stack-栈 压入(把值压入stack不叫分配) stack存放的是固定大小的数据。 应为指针是已知固定大小的,可以把指针存放到stack上。 把数据压入stack比在heap上分配快的多。 Heap- 阅读全文
posted @ 2024-09-25 09:56 lxd670 阅读(45) 评论(0) 推荐(0)
摘要: 为什么学习迭代器 如何for循环自定义实例对象 class Student: def __init__(self): self.students = [] def add_student(self, name, age): self.students.append({ "name": name, " 阅读全文
posted @ 2024-09-25 09:53 lxd670 阅读(19) 评论(0) 推荐(0)
摘要: 1.node表格 ip | labels + 1.1.1.1 | x_build rv_build 1.1.1.2 | x_build rv_build 1.1.1.3 | x_build rv_build 1.1.1.4 | x_build aa_rv_build 1.1.1.5 | x_buil 阅读全文
posted @ 2024-01-17 09:59 lxd670 阅读(22) 评论(0) 推荐(0)
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, 阅读全文
posted @ 2024-01-09 01:05 lxd670 阅读(61) 评论(0) 推荐(0)
摘要: __doc__用法 def fun1(): """This is a fun1""" pass class Debug: """This is a class for debugging""" def __init__(self): """ This funtion only has one pro 阅读全文
posted @ 2024-01-07 22:56 lxd670 阅读(151) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 12 下一页