安装shortuuid pip install shortuuid 编辑front.models.py from exts import db import shortuuid from werkzeug.security import generate_password_hash, check_password_hash import enum from datetime import datetime class GenderEnum(enum.Enum): MALE = 1 FEMALE…
[易学易懂系列|rustlang语言|零基础|快速入门|(26)|实战3:Http服务器(多线程版本)] 项目实战 实战3:Http服务器 我们今天来进一步开发我们的Http服务器,用多线程实现. 我们在原来工程h_server更新代码如下: src/main.rs: use h_server::*; use std::fs; use std::io::prelude::*; use std::net::TcpListener; use std::net::TcpStream; fn main(…
The authenticity of host '10.11.26.2 (10.11.26.2)' can't be established. ECDSA key fingerprint is SHA256:8Dc40hVvLGlPkLiv5IWEQZyjeFb2fPwQCcqhBCkMuPk. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.11.26.2' (…
一.错误情况 报错如下: [0807/144244.712736:FATAL:nss_util.cc(627)] NSS_VersionCheck("3.26") failed. NSS >= 3.26 is required Please upgrade to the latest NSS, and if you still get this error, contact your distribution maintainer. 原因是说 NSS (Network Secur…
用户自己定义异常类 前面已经说了不少关于异常的问题了,如今来给大家说一下自己定义异常时咋个回事以及咋样. 为啥会出现自己定义异常类呢? 用用脚趾头想想也明确,是为了定义咱们自己的异常,自己定义异常类继承自ApplicationException 首先异常(Exception)分为两大类,一个是提前定义的异常类,后者是用户自己定义异常类时须要继承的类. 案例: using System; using System.Collections.Generic; using System.Lin…