# PythonDraw.py import turtle as t t.setup(650, 350, 200, 200)t.penup()t.fd(-250)t.pendown()t.pensize(25)t.pencolor("purple")t.seth(-40)for i in range ...
分类:
其他好文 时间:
2019-10-09 17:49:56
阅读次数:
107
nginx服务器配置:192.168.200.111[root@nginx ~]# hostname nginx[root@nginx ~]# bash[root@nginx ~]# vim /usr/local/nginx/conf/nginx.confupstream tomcat_pool { ...
分类:
系统相关 时间:
2019-10-09 15:24:19
阅读次数:
104
sync.WaitGroup提供了一种安全的多协程处理方法,内部使用race来处理,避免了资源竞争及锁的产生。 主要的方法有Add、Done、Wait,可以等待一组协程全部执行完毕后,主程序才继续往下执行。 代码示例: 输出结果 ...
分类:
其他好文 时间:
2019-10-08 12:50:47
阅读次数:
91
本篇主要写一些 脚本循环语句的使用。 for 循环 指定次数 检查主机状态 while 循环 输出 到`10` bash !/bin/bash num=1 while [ $num le 10 ] do echo $num num= let num++ done bash !/bin/bash us ...
分类:
系统相关 时间:
2019-10-08 09:19:33
阅读次数:
122
<! done rest framework框架的基本组件 知识预览快速实例序列化视图三部曲认证与权限组件解析器分页 回到顶部快速实例 Quickstart 回到顶部序列化 创建一个序列化类 简单使用 开发我们的Web API的第一件事是为我们的Web API提供一种将代码片段实例序列化和反序列化为 ...
分类:
其他好文 时间:
2019-10-07 19:38:42
阅读次数:
86
1) a function to check the free memory: 2) using for loop to print the odd number from 1 to 99 3) If and case 4. delete the function name from termina ...
分类:
其他好文 时间:
2019-10-06 18:27:45
阅读次数:
103
1. create a function to generate file with the filename start with 10 random characters ...
分类:
其他好文 时间:
2019-10-06 18:26:43
阅读次数:
77
一、python函数 1.函数自定义格式: 分为有无返回值两种类型 1.1举例: 这里用到的即是带返回值的情况。 二、异常处理: ...
分类:
编程语言 时间:
2019-10-06 13:13:22
阅读次数:
93
shell脚本一键创建虚拟机 代码如下: #!/bin/bashname=$1 #把位置变量$1重新定义为name(创建虚拟机的名字)path1=/var/lib/libvirt/images/ #img存放路径path2=/etc/libvirt/qemu/ #xml文件存放路径function ...
分类:
系统相关 时间:
2019-10-05 22:42:53
阅读次数:
178
前言 本文链接:https://www.cnblogs.com/hellxz/p/linux_touchpad_settings.html 这时简单记录一下最近两天折腾Lxde的触摸板功能的设置,留待日后查阅 本文主要记录一下APT系Linux开启Lxde触摸板双击功能,以及一些关于触摸板防误触方面 ...
分类:
其他好文 时间:
2019-10-05 00:51:35
阅读次数:
157