01 2021 档案

摘要:1、调用代码 # -*- encoding=utf-8 -*- from suds.client import Client class WebService: def __init__(self): pass @staticmethod def see_webservice(url): url = 阅读全文
posted @ 2021-01-28 16:32 南风丶轻语 阅读(1003) 评论(0) 推荐(0)
摘要:1、获取当前年月日时分秒 # -*- encoding=utf-8 -*- import datetime now = datetime.datetime.now() print("now:{}".format(now)) year = now.year print("year:{}".format 阅读全文
posted @ 2021-01-28 16:26 南风丶轻语 阅读(733) 评论(0) 推荐(0)
摘要:参考链接: https://www.jianshu.com/p/42d1c9fb538c 1、系统环境 LSB是Linux Standard Base的缩写,lsb_release命令用来显示LSB和特定版本的相关信息。 root@ubuntu:~$ lsb_release -a No LSB mo 阅读全文
posted @ 2021-01-26 11:07 南风丶轻语 阅读(1958) 评论(0) 推荐(0)
摘要:1、分割线 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Doc 阅读全文
posted @ 2021-01-21 16:13 南风丶轻语 阅读(809) 评论(0) 推荐(0)
摘要:1、模仿菜鸟教程的导航栏 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <ti 阅读全文
posted @ 2021-01-21 15:04 南风丶轻语 阅读(445) 评论(0) 推荐(0)
摘要:假设Model6是需要迁移的app但是运行python manage.py makemigrations和python manage.py migrate后总是报no changes,可以这么解决 1、删除Model6文件夹下migrations文件夹下除__init__.py的其他文件 2、删除数 阅读全文
posted @ 2021-01-14 17:54 南风丶轻语 阅读(188) 评论(0) 推荐(0)
摘要:1、按行读取xls xls文件为两个表格,内容都是一样的 # -*- encoding=utf-8 -*- import os import xlrd filename = os.path.abspath('readxls.xls') book = xlrd.open_workbook(filena 阅读全文
posted @ 2021-01-14 09:24 南风丶轻语 阅读(2604) 评论(0) 推荐(0)
摘要:1、获取文件的创建、修改、访问时间 参考链接: https://www.cnblogs.com/likeatree/p/4280388.html # -*- encoding=utf-8 -*-import osimport timedef get_file_time(filename): file 阅读全文
posted @ 2021-01-09 15:00 南风丶轻语 阅读(3392) 评论(0) 推荐(0)
摘要:制作一个基于ubuntu的docker,带有nginx和监控流量插件(nginx-module-vts) 1、下载ubuntu16.04模板压缩包 链接:https://download.openvz.org/template/precreated/ 文件名:ubuntu-16.04-x86_64. 阅读全文
posted @ 2021-01-07 17:12 南风丶轻语 阅读(2226) 评论(0) 推荐(0)
摘要:1、下载一个原始的模板压缩包 链接:https://download.openvz.org/template/precreated/ 文件名:ubuntu-16.04-x86_64.tar.gz 2、导入模板压缩包为镜像 docker import -m 'test docker for http, 阅读全文
posted @ 2021-01-05 09:44 南风丶轻语 阅读(671) 评论(0) 推荐(0)