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

浙公网安备 33010602011771号