Leetcode.283 Move Zeroes Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero e ...
分类:
编程语言 时间:
2020-07-28 14:38:35
阅读次数:
91
主从分离:https://blog.csdn.net/weixin_39726347/article/details/88051089 1.在项目settings.py下的读写数据库配置如下: DATABASES = { 'default': { 'ENGINE': 'django.db.backe ...
分类:
数据库 时间:
2020-07-26 23:06:04
阅读次数:
97
描述 73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route t ...
分类:
其他好文 时间:
2020-07-26 19:29:18
阅读次数:
90
编写一个程序,通过已填充的空格来解决数独问题。 一个数独的解法需遵循如下规则: 数字 1-9 在每一行只能出现一次。数字 1-9 在每一列只能出现一次。数字 1-9 在每一个以粗实线分隔的 3x3 宫内只能出现一次。空白格用 '.' 表示。 Note: 给定的数独序列只包含数字 1-9 和字符 '. ...
分类:
其他好文 时间:
2020-07-26 19:21:12
阅读次数:
50
彩笔一个,后来看其他师傅的wp才知道还有这些做法。 #WEB1 Ezfileincude 打开题目是一张图片,直接看源码发现存在 image.php?t=XXXXXX&f=XXXXXXX t是时间戳,f是图片路径的base64加密 后面测试发现题目过滤了../ // ./,最后发现可以在f=imag ...
分类:
其他好文 时间:
2020-07-26 15:52:43
阅读次数:
235
在 Python 中要操作文件需要记住 1 个函数和 3 个方法 open 函数负责打开文件,并且返回 文件对象 read/write/close 三个方法都需要通过 文件对象 来调用 新建(打开)文件和关闭文件 在python,使用open函数,可以打开一个已经存在的文件,或者如果该文件不存在,则 ...
分类:
编程语言 时间:
2020-07-26 15:47:20
阅读次数:
69
Python基础编程 Author : AI菌 【操作步骤】 Pyhton对文件操作,主要包含以下3个步骤: 1、打开文件2、读/写数据 3、关闭文件 【代码实现】 """ Python操作文件的步骤: 1.打开文件 2.读/写数据 3.关闭文件 """ # 写数据 # 1.打开文件 f = ope ...
分类:
编程语言 时间:
2020-07-26 02:01:54
阅读次数:
67
In this note,you will not find the concept of QS and the method of how to compute the cost of time and space of this algorithm。This page will not refe ...
分类:
其他好文 时间:
2020-07-26 01:23:01
阅读次数:
76
[root@centos7 nginx]# cat nginx.conf worker_processes 2; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type applic ...
分类:
其他好文 时间:
2020-07-26 01:19:27
阅读次数:
70
将网页中的table数据,导出到excel表格,可以使用java POI实现。 java poi是java中操作excel的工具,支持excel的导入与导出,一般有三种形式: 1.HSSFWorkbook:是操作Excel2003以前(包括2003)的版本,扩展名是.xls; 2.XSSFWorkb ...
分类:
编程语言 时间:
2020-07-26 00:21:27
阅读次数:
85