#include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #define MAXN 100000 using namespace std; int pri[MAXN];///质数数列 bool vis[MAXN ...
分类:
其他好文 时间:
2020-11-08 17:07:41
阅读次数:
13
1.大小写转换 str.toUpperCase() //都转为大写字母 str.toLowerCase() //都转位小写字母 2.获取子字符串 str.slice(start,end) //从start截取到end 特点: 1.包含start,不包含end 2.如果省略end,表示一直选取到尾 3 ...
[plain] view plaincopy public class AutoTextView extends TextSwitcher implements ViewFactory { private float mHeight; private Context mContext; //mInU ...
分类:
其他好文 时间:
2020-11-07 17:47:40
阅读次数:
32
事件循环是asyncio提供的核心运行机制 column column asyncio.get_event_loop() 返回一个事件循环对象,时asyncio.BaseEventLoop的实例 AbstractEventLoop.stop() 停止运行事件循环 AbstractEventLoop. ...
分类:
其他好文 时间:
2020-11-07 17:43:04
阅读次数:
28
time模块下的perf_counter方法可用于精确计算程序运行的时间: 1 import time 2 3 start = time.perf_counter() 4 l = list(range(10000)) 5 end = time.perf_counter() 6 run_time= e ...
分类:
其他好文 时间:
2020-11-07 17:18:06
阅读次数:
24
运行项目时会报错: x-invalid-end-tag (vue/no-parsing-error) _ 这是因为view在标签渲染成原生的标签时,有些标签是自闭合的因此产生标签闭合的错误提示信息。 解决办法如下: ...
分类:
其他好文 时间:
2020-11-07 16:26:59
阅读次数:
18
1.需要先导入一个设置表结构 xxqcfg_mstr(用Data Administraton工具选择数据库导入) ADD TABLE "xxqcfg_mstr" AREA "CONTROL" DESCRIPTION "Config for xxqad program " DUMP-NAME "xxq ...
分类:
其他好文 时间:
2020-11-07 15:59:54
阅读次数:
19
1.序列 序列是一块用于存放多个值的连续内存空间,并且按一定顺序排列,每一个值(称为元素)都分配一个数字,称之索引或位置。通过该索引可以取出相应的值;(在python中内置了5个常用的序列结构:列表,元组,集合,字典和字符串) 1.1索引 序列中的每一个元素都有一个编号,也称为索引。注意这个索引是从 ...
分类:
编程语言 时间:
2020-11-07 15:30:32
阅读次数:
21
CSS代码: /* start */ .my-face { animation: my-face 5s infinite ease-in-out; display: inline-block; margin: 0 5px; } @-webkit-keyframes my-face { 2%, 24% ...
分类:
Web程序 时间:
2020-11-06 02:48:53
阅读次数:
45
1.简介 redis-cluster是一种分布式存储的集群,不同主节点上存储不同的数据。 原理请参照: https://www.cnblogs.com/CoreXin/articles/5688019.html https://blog.csdn.net/truelove12358/article/ ...
分类:
其他好文 时间:
2020-11-06 02:36:56
阅读次数:
19