异步 asyncio、async、await 异步非阻塞 tronado、fastapi、django3.x asgi、sanic、aiohttp都在异步——>提升性能 协程 asyncio模块进行异步编程 实战案例 1.协程 协程不是计算机提供的,是程序员人为创造的。 协程(Coroutine), ...
分类:
编程语言 时间:
2021-04-27 14:36:58
阅读次数:
0
字符串时间转datetime时间 from datetime import datetime b='2021-04-26 11:23:56' c = datetime.strptime(b, "%Y-%m-%d %H:%M:%S") print(c) # datetime.datetime(2021 ...
分类:
编程语言 时间:
2021-04-27 14:35:01
阅读次数:
0
简单的定义 const numArr:number[]=[1,2,3] const strArr:string[]=['a','b','c'] const undeArr:undefined[]=[undefined,undefined] 数组中有字符串又有数组的类型 const arr:(numb ...
分类:
编程语言 时间:
2021-04-27 14:24:27
阅读次数:
0
(1)数字型变量之间可以直接计算(2)字符串变量 之间使用 : 拼接字符串(3)字符串变量 可以和 整数 使用 * 重复拼接相同的字符串(4)数字型变量和 字符串 之间 不能进行其他计算 name="huadian"age=12score=100#数值类型直接相加:算术相加print(age+sco ...
分类:
其他好文 时间:
2021-04-27 14:23:38
阅读次数:
0
2.1 Hello Python程序 2.1.1 Python 源程序的基本概念 1.Python源程序就是一个特殊格式的文本文件,可以使用任意文本编辑软件做Python的开发 2.Python 程序的文件扩展名通都是.py 文本文件:没有任何的格式 在window下,能够使用记事本打开的文件 Li ...
分类:
编程语言 时间:
2021-04-27 14:23:00
阅读次数:
0
模型参数 参数名 参数描述 可选值 boosting_type 模型提升方式 'gbdt'、'dart'、'goss'、'rf' num_leaves 每个基学习器的最大叶子 默认31 max_depth 基学习器树的最大深度 默认-1,没有限制 learning_rate boosting学习率 ...
分类:
编程语言 时间:
2021-04-27 14:19:07
阅读次数:
0
一些crontab调度示例 10 6 * * * root reboot 10 7 * * * python /root/confluence_backup.py */5 * * * * flock -xn /tmp/stargate.lock -c '/usr/local/qcloud/starg ...
分类:
其他好文 时间:
2021-04-27 14:12:22
阅读次数:
0
最小值点有4个 import numpy as np from mpl_toolkits.mplot3d import Axes3D from matplotlib import pyplot as plt import torch def himmelblau(x): return (x[0] * ...
分类:
其他好文 时间:
2021-04-27 14:12:10
阅读次数:
0
解释器 python / python3 使用Python2.x解释器 S Python xxx.py 使用Python3.x解释器 S Python3 xxx.py 交互式运行 Python 程序 交互式:问答方式,输入一个语句,里面有结果返回 MySQL提供交互式命令行 进入交互式命令:Pyth ...
分类:
编程语言 时间:
2021-04-27 14:11:57
阅读次数:
0
(1)python是完全面向对象的语言1 + 1 函数、模块、数字、字符串都是对象,在python中一切皆对象 完全支持继承、重载、多重继承 支持重载运算符,也支持泛型设计 (2)python拥有一个强大的标准库 Python标准库提供了系统管理、网络通信、文本处理、数据库接口图形 系统、xml处理 ...
分类:
编程语言 时间:
2021-04-26 14:09:10
阅读次数:
0