from turtle import * def square(size=50, rgb = 'orange'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) for ...
分类:
其他好文 时间:
2021-06-18 20:05:27
阅读次数:
0
#更新yum软件管理器 yum -y update #安装docker yum install -y docker 2.配置docker 加速器 curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361 ...
分类:
其他好文 时间:
2021-06-18 20:01:26
阅读次数:
0
容器就是个存东西的地方 依赖注入,就是通过构造函数,属性或者set方法传递对象的方式 如果依赖的类太多了,那么通过上面的方式传递对象就很繁琐 那么我们就可以直接传进去一个容器,需要的时候就在容器里面去拿就简单多了 这就是我们的容器类 //简单容器类 class Container { private ...
分类:
Web程序 时间:
2021-06-18 20:00:39
阅读次数:
0
from turtle import *def moveto(x,y): penup() goto(x,y) pendown()def main(): setup(800, 600) speed(0) for radius in range(20, 200, 20): moveto(0, -radi ...
分类:
其他好文 时间:
2021-06-18 20:00:08
阅读次数:
0
我的宿机是Mint20,所有使用linux的命令启用VT-x/AMD-V linux启用方式 在宿机上执行命令列出所有虚机 ~$ VBoxManage list vms "centos7-1" {ec49b90a-fd46-402d-bce6-d73f0b889c9b} "centos7-2" {f ...
分类:
其他好文 时间:
2021-06-18 19:55:56
阅读次数:
0
在centos上最常用的定时任务服务是crond。 任务是由 cron (crond) 这个系统服务来控制的,这个系统服务是默认启动的。用户自己设置的计划任务则使用crontab命令。crond和crontab是不可分割的。 1. 安装软件服务 正常centos7自动安装crond服务及cronta ...
分类:
其他好文 时间:
2021-06-18 19:55:38
阅读次数:
0
DI依赖注入 set方式注入【重点】 依赖注入:set注入 依赖:bean对象的创建依赖于容器 注入:bean对象中的所有属性,由容器来注入 【环境搭建】 1.真实测试对象 2.复杂类型 @Data public class Student { private String name; privat ...
分类:
其他好文 时间:
2021-06-18 19:53:42
阅读次数:
0
Redis Redis 简介 Redis 一个开源的,内存中的数据结构存储系统,它可以用作数据库,缓存和消息中间件。 它支持多种类型的数据结构,如 字符串 string 、散列 hashes 、列表 list 、集合 set 、有序集合 zset 和 范围查询,bitmaps 、hyperloglo ...
分类:
其他好文 时间:
2021-06-18 19:52:49
阅读次数:
0
先卸载 brew安装的node,避免与n安装的node冲突 brew uninstall node 然后安装 n brew install n 通过n 安装不同版本的node sudo n 16.3 sudo n 14.17.0 查看n % n list node/14.17.0 node/16.3 ...
分类:
系统相关 时间:
2021-06-18 19:52:04
阅读次数:
0
1.1 ArrayList的用法 马克-to-win:ArrayList是List接口的众多实现类其中的一个: 可以使我们快速访问元素,马克-to-win:为什么?因为它的内部组成结构就像Array一样,而且提供了可以直接访问第几个元素的方法比如下面例子中的get(index),但往其中插入和删除元 ...
分类:
编程语言 时间:
2021-06-18 19:39:21
阅读次数:
0