1. 安装Nginx 2. 安装Mysql 3.安装PHP 4. 安装Composer --确认是否安装Composer:Composer -version --下载Composer:curl -sS https://getcomposer.org/installer | php --查看Compo ...
分类:
Web程序 时间:
2020-06-04 19:43:42
阅读次数:
247
cors中间件 from django.utils.deprecation import MiddlewareMixin class CorsMiddleWare(MiddlewareMixin): def process_response(self,request,response): if re ...
分类:
其他好文 时间:
2020-06-04 19:42:39
阅读次数:
75
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th ...
分类:
其他好文 时间:
2020-06-04 11:56:26
阅读次数:
48
转自:https://blog.csdn.net/scarecrow_byr/article/details/48625085 linux syscon and regmap study note-v0.1 2015.9.19 Sherlock draft1. What is regmap and ...
分类:
系统相关 时间:
2020-06-04 10:39:23
阅读次数:
103
问题描述 问题描述: 之前用的好好的,重换了下环境,Tomcat运行没有问题,但控制台怎么多出这么一句话: NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.b ...
分类:
编程语言 时间:
2020-06-04 01:13:27
阅读次数:
848
翻译自http://cola.gmu.edu/grads/gadoc/SDFdescriptorfile.html 使用GrADS阅读NetCDF和HDF文件 NetCDF和HDF格式的文件被称作自描述文件(self-describing file, SDF),因为数据和元数据一块保存在同一个文件中 ...
分类:
Web程序 时间:
2020-06-03 23:34:58
阅读次数:
121
1、hasattr(object,attr) 判断一个对象里是否有某个属性或方法,返回布尔值,有为True,否则False class test(): name = "xiaoxiao" def say(self): return "HelloWord" t = test() has_name = ...
分类:
编程语言 时间:
2020-06-03 23:34:42
阅读次数:
88
class A(object): # 属性默认为类属性(可以给直接被类本身调用) num = "类属性" # 实例化方法(必须实例化类之后才能被调用) def func1(self): # self : 就是A这个大类 print("func1") print(self) # 类方法(不需要实例化类 ...
分类:
编程语言 时间:
2020-06-03 20:35:55
阅读次数:
149
Python面向对象的开发肯定离不开class,有点类似C语言的struct可以抽象描述对象并返回数据于方法。 例如,建立一个class描述笛卡尔坐标系中的点: class point(): def __init__(self, x, y): self.x = x self.y = y self.n ...
分类:
编程语言 时间:
2020-06-03 20:05:16
阅读次数:
128
21、树 输入一个整数数组,判断该数组是不是某二叉搜索树的后序遍历的结果。如果是则输出Yes,否则输出No。假设输入的数组的任意两个数字都互不相同。 # -*- coding:utf-8 -*- class Solution: def VerifySquenceOfBST(self, sequenc ...
分类:
编程语言 时间:
2020-06-03 18:48:47
阅读次数:
60