1、系统版本信息[root@linux/]#cat/etc/redhat-releaseCentOSLinuxrelease7.4.1708(Core)[root@linux/]#uname-r3.10.0-693.el7.x86_642、源码编译安装apache服务后,设置开机自启动报错信息################systemctl设置开机自启动报错################[ro
分类:
Web程序 时间:
2020-07-19 11:27:10
阅读次数:
143
安装 pip install alembic 初始化 alembic init alembic 修改配置alembic.ini sqlalchemy.url = driver://user:pass@localhost/dbname 修改env.py import sys from logging. ...
分类:
数据库 时间:
2020-07-19 11:23:58
阅读次数:
76
package com.exam; import java.util.HashMap; import java.util.Map; /** * @author zt on 2020/7/18 * <p> * 1、创建十个HashMap,每个HashMap含有10万条记录; * 2、传递不同的构造方法 ...
分类:
其他好文 时间:
2020-07-19 00:55:31
阅读次数:
77
抓取一波知乎表情图呀,表情来源于知乎某个提问,地址为 https://www.zhihu.com/question/311745535. import requests import re import os class CrawlImg: def __init__(self): self.ques ...
分类:
其他好文 时间:
2020-07-19 00:37:54
阅读次数:
84
# coding: utf-8 import arcpy class Toolbox(object): def __init__(self): """Define the toolbox (the name of the toolbox is the name of the .pyt file)." ...
分类:
编程语言 时间:
2020-07-18 22:16:15
阅读次数:
119
原题链接 题解 利用双指针算法,直接让后面一个指向前面一个 代码如下 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x ...
分类:
其他好文 时间:
2020-07-18 22:12:35
阅读次数:
56
一、下载源码包 1 官网下载 下载带有jdk的elasticsearch https://elasticsearch.cn/download/ 2 网盘下载 https://pan.baidu.com/share/init?surl=zmVDZLZ1KJyQUdQDgJwKPw 提取码:mtvl 3 ...
分类:
其他好文 时间:
2020-07-18 22:04:05
阅读次数:
95
全局Response对象和全局异常捕获和日志 1. 全局Response对象 from rest_framework.response import Response class APIResponse(Response): def __init__(self, code=100, msg='成功' ...
分类:
其他好文 时间:
2020-07-18 21:51:44
阅读次数:
72
根文件系统制作过程大致分为两步: 1)用busybox构建基本的框架 2)添加必要目录及文件,比如etc目录及目录中的配置文件 内核挂载根文件系统到进入命令行的过程: 1)内核找到根文件系统路径后,首先加载运行init参数指定的进程1,如init=/linuxrc,运行根文件系统中的/linuxrc ...
分类:
其他好文 时间:
2020-07-18 19:52:07
阅读次数:
80
一、安装 二、使用 git常用命令 新建git项目提交 1、(先进入项目文件夹)通过命令 git init 把这个目录变成git可以管理的仓库 git init 2、把文件添加到版本库中,使用命令 git add .添加到暂存区里面去,不要忘记后面的小数点“.”,意为添加文件夹下的所有文件 git ...
分类:
其他好文 时间:
2020-07-18 15:53:42
阅读次数:
68