?这是啥算法题。。 逐个判断写个循环即可 class Solution: def fizzBuzz(self, n: int) -> List[str]: result = [] for i in range(1,n+1): if i % 3 == 0 and i % 5 == 0 : result ...
分类:
编程语言 时间:
2021-06-10 17:39:18
阅读次数:
0
一、打包镜像并运行 1、项目代码打包上传服务器及相关配置文件ip设置 2、编写dockerfile Docker通过读取Dockerfile中的指令自动生成映像 Dockerfile 一般分为四部分:基础镜像信息、维护者信息、镜像操作指令和容器启动时执行指令,’#’ 为 Dockerfile 中的注 ...
分类:
其他好文 时间:
2021-06-10 17:33:19
阅读次数:
0
定义: 何为触发器?在SQL Server里面也就是对某一个表的一定的操作,触发某种条件,从而执行的一段程序。触发器是一个特殊的存储过程。常见的触发器有三种:分别应用于Insert , Update , Delete 事件。 我为什么要使用触发器?比如,这么两个表: Create Table Stu ...
分类:
数据库 时间:
2021-06-09 15:25:21
阅读次数:
0
1. Cannot allocate memory RocketMQ默认安装需要使用8G的内存,所以如果内存不够会导致启动失败,这时需要修改配置文件bin/runbroker.sh,修改xms、xmx和xmn。参考https://www.cnblogs.com/freeweb/p/7817968.h ...
分类:
其他好文 时间:
2021-06-08 23:24:24
阅读次数:
0
import multiprocessing, time, os# def pro(name):# print('hello', name, time.ctime())## if __name__ == '__main__':# l = []# for t in range(4):# t = mul ...
分类:
系统相关 时间:
2021-06-08 23:20:39
阅读次数:
0
按照官方设置写的路由,卡在了Cannot read property 'matched' of undefined这个错误问题,查了很多资料才知道,有两上命名是不能改动的,route与router; 在目录新建了文件router.js import Vue from 'vue' import vue ...
分类:
其他好文 时间:
2021-06-07 20:35:33
阅读次数:
0
问题: Jemeter 使用 jdbc 连接 Mysql 8.0.17, 出现 Cannot create PoolableConnectionFactory (Could not crCannot create PoolableConnectionFactory (Could not create ...
分类:
数据库 时间:
2021-06-07 20:29:47
阅读次数:
0
db = pymysql.connect(host="localhost", port=3306, user="root", passwd="xxx", db="stu_info")cursor = db.cursor(cursor=pymysql.cursors.DictCursor)cursor ...
分类:
数据库 时间:
2021-06-07 20:09:12
阅读次数:
0
# 将请求相关的数据environ封装到Request Context对象中# 再将对象封装到local中(每个线程或协程独立空间存储)# ctx.app --当前app到名称,即Flask对象# ctx.request --Request对象(封装请求相关的东西)# ctx.session --空 ...
分类:
其他好文 时间:
2021-06-06 19:30:20
阅读次数:
0
目录 操作BOM 1、浏览器 2、window 3、navigator 4、screen 5、location 6、document 7、history 操作BOM 1、浏览器 不同的浏览器对JavaScript支持的差异主要是,有些API的接口不一样,比如A JAX,File接口。对于ES6标准, ...
分类:
编程语言 时间:
2021-06-06 19:19:58
阅读次数:
0