discuz-security 服务器版安全工具功能:文件更改监控。文件备份当监控的目录有php文件被更改后,对此文件进行扫马,如果命中目标,则从备份文件中恢复原始文件到监控目录。环境:Linux ≥ 2.6.13Python ≥ 2.4 (including Python 3.x)使用:文件解压缩...
分类:
其他好文 时间:
2014-09-29 10:52:57
阅读次数:
208
内置函数一,文档说明原始文档来自于pythonv2.7.2中文译文和用法尚不完全,您可以自由修改和完善,您可以在文档结尾鸣谢添上您的名字,我们将会感谢您做的贡献!二,函数列表1,取绝对值abs(x)Returntheabsolutevalueofanumber.Theargumentmaybeapl...
分类:
编程语言 时间:
2014-09-29 10:23:17
阅读次数:
320
//冒泡排序defbubble(x,n):'''Thisfunctionorderstheoriginalitemsxxislist,nisthelengthofx'''foriinrange(n):forjinrange(n-1):ifx[j]>x[j+1]:t=x[j]x[j]=x[j+1]x[...
分类:
编程语言 时间:
2014-09-29 09:12:47
阅读次数:
194
原题地址:https://oj.leetcode.com/problems/symmetric-tree/题意:判断二叉树是否为对称的。Given a binary tree, check whether it is a mirror of itself (ie, symmetric around ...
分类:
编程语言 时间:
2014-09-29 03:48:56
阅读次数:
195
申明:转载请注明作者(byChenReason)及出处,谢谢。最近在学python,首先就想找个小功能来试着实现以下当作练手,最后决定就以爬取京东商品的缺货记录作为目标。要爬京东数据,当然要从分析京东的商品页面开始。我们先以京东的手机频道为例。不然发现,有个【仅显示有货】按..
分类:
其他好文 时间:
2014-09-29 03:45:47
阅读次数:
225
(坦率的说,这道题目感动了我, 让我这个编程新手体验到了逻辑的美)原题地址:https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/题意: 1 / \ 2 ...
分类:
编程语言 时间:
2014-09-29 03:08:16
阅读次数:
273
1,获取当前数据库下的所有集合,返回的是一个列表(搞python的应该熟悉python的4个核心数据库类型及其特性dict{},list[],数组(),集合(目的仅仅是去重))2,显示当前db下的所有collections stats3,数据库db,集合collection stats4,当前连接数...
分类:
数据库 时间:
2014-09-29 01:53:37
阅读次数:
446
申明:转载请注明作者(by?ChenReason)及出处,谢谢。 最近在学python,首先就想找个小功能来试着实现以下当作练手,最后决定就以爬取京东商品的缺货记录作为目标。 要爬京东数据,当然要从分析京东的商品页面开...
分类:
其他好文 时间:
2014-09-29 00:26:18
阅读次数:
271
第10章 | 充电时刻
本章主要介绍模块及其工作机制
------
模块
>>> import math
>>> math.sin(0)
0.0
模块是程序
一个简单的模块
#hello.py
print ("Hello,World!")
>>> import hello
Traceback (most recent call last):
File "", line 1, in
import hello
ImportError: No module n...
分类:
编程语言 时间:
2014-09-28 23:11:56
阅读次数:
485
The Module PatternModulesModules are an integral piece of any robust application's architecture and typically help in keeping the units of code for a ...
分类:
编程语言 时间:
2014-09-28 23:04:55
阅读次数:
275