string常用函数

#include<bits/stdc++.h> using namespace std; int main() { string s="123456789";//定义字符串 // cin>>s;//输入 // getline(ci...

sscanf函数使用详解

一、描述sscanf通常被用来解析并转换字符串,其格式定义灵活多变,可以实现很强大的字符串解析功能。int year, month, day; int converted = sscanf("20191103", "%04d%02d%02d", &a...

shu-zhi-zhuan-huan

整型有4种进制形式:1.十进制: 都是以0-9这九个数字组成,不能以0开头。2.二进制: 由0和1两个数字组成。3.八进制: 由0-7数字组成,为了区分与其他进制的数字区别,开头都是以0开始。4.十六进制:由0-9和A-F组成。为了区分于其他数字的区别,开头都是以0x开始。基数:允许选用的基本...

sakuraCat官方客户端终端代理设置

cmd set http_proxy=http://127.0.0.1:端口号 set https_proxy=http://127.0.0.1:端口号bashlinuxexport http_proxy=http://127.0.0.1:端口号export https_proxy=http:...

Refit使用入门(webapi访问方法)

前言原文:Refit: The automatic type-safe REST library for .NET Core, Xamarin and .NET百度翻译:Refit:适用于.NET Core、Xamarin和.NET的自动类型安全REST库官方网站:https://github...

Python生成随机数

#!/usr/bin/env python from cyaron import * import random for i in range(1, 11): test_data = IO(file_prefix="", data_id=i) # 生成 hea...

python比较两个Excel文件异同

import pandas as pd import numpy as np # 读取 Excel 文件 df1 = pd.read_excel('oa_student.xlsx') df2 = pd.read_excel('(967人)(2024.10.08)锦绣校区2024学年第一学期学生...

python 根据Excel指定字段内容不同时插入空白行

import pandas as pd def insert_blank_rows(df, field_name): new_rows = [] for index, row in df.iterrows(): new_rows.append(row) ...

osharp集成Yitter.IdGenerator并实现分布式ID

osharp集成Yitter.IdGenerator并实现分布式ID前言osharp是什么?请看https://github.com/dotnetcore/osharp安装Yitter.IdGeneratornuget安装Yitter.IdGenerator包实现IKeyGeneratorus...

osharp的Auth_Function与Auth_Module什么关系