上一页 1 2 3 4 5 6 7 8 ··· 25 下一页
摘要: 1、反向解析的概述和来由 在Django中提供了关于URL的映射的解决方案,可以做两个方向的使用 1.普通解析过程:由客户端的浏览器发起一个url请求,Django根据url解析,把url中的参数捕获,调用相应的视图,获取相应的数据,然后返回给客户端显示。 2.反向解析:通过一个视图的名字,再加上一 阅读全文
posted @ 2021-04-26 15:25 努力乄小白 阅读(393) 评论(0) 推荐(0) 编辑
摘要: configmap: 具体配置: 挂载点设置: 阅读全文
posted @ 2021-04-15 13:55 努力乄小白 阅读(200) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-03-11 14:59 努力乄小白 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-02-02 09:59 努力乄小白 阅读(5) 评论(0) 推荐(0) 编辑
摘要: from qcloud_cos import CosConfig from qcloud_cos import CosS3Client config = CosConfig(Region='ap-shanghai', Secret_id='xxxxxxxxxxxx', Secret_key='xxx 阅读全文
posted @ 2020-12-28 10:55 努力乄小白 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python3.7 import psutil import time import os, requests import json monitor_name = {'nginx','supervisord'} monitor_map = { 'httpd': 'system 阅读全文
posted @ 2020-12-16 17:59 努力乄小白 阅读(563) 评论(0) 推荐(0) 编辑
摘要: Python生成随机验证码,需要使用PIL模块. 安装: 1 pip3 install pillow 基本使用 1. 创建图片 1 2 3 4 5 6 7 8 9 from PIL import Image img = Image.new(mode='RGB', size=(120, 30), co 阅读全文
posted @ 2020-12-07 16:13 努力乄小白 阅读(136) 评论(0) 推荐(0) 编辑
摘要: random() 函数中常见的函数如下: #!/usr/bin/python # -*- coding: UTF-8 -*- import random print( random.randint(1,10) ) # 产生 1 到 10 的一个整数型随机数 print( random.random( 阅读全文
posted @ 2020-11-03 14:30 努力乄小白 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 设置开机自动同步Internet时间,并作定时同步任务1、修改时区 rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime vim /etc/sysconfig/clock ZONE="Asia/Sha 阅读全文
posted @ 2020-09-17 13:43 努力乄小白 阅读(2209) 评论(0) 推荐(0) 编辑
摘要: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2020-09-16 09:17 努力乄小白 阅读(2844) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页