内置函数 内置函数就是python给你提供的, 拿来直接用的函数, 比如print., input等. 截止到python版本3.6.2 python一共提供了68个内置函数. #68个内置函数 # abs() dict() help() min() setattr() # all() dir() ...
分类:
编程语言 时间:
2020-04-22 22:52:10
阅读次数:
78
A. 给你一个n,解方程,(1+2+4+...+2^(k-1))*x=n,保证k>1。 枚举k,可以整除时输出一个数。 #include<bits/stdc++.h> #define all(x) x.begin(),x.end() #define fi first #define sd secon ...
分类:
其他好文 时间:
2020-04-22 20:02:07
阅读次数:
58
需求:在svn服务器上面,手动创建补丁路径,然后在服务器上面去自动获取svn路径. 具体实现:使用svn list 主路径 获得主路径下面所有的子路径,返回值是列表.然后判断拼接的路径是否在返回值中即可。 def get_svn_home_path_all_dir(path): """获取svn主目 ...
分类:
其他好文 时间:
2020-04-22 16:49:36
阅读次数:
69
//第一步:注册组件->编码器、解码器等等… av_register_all(); //第二步:初始化封装格式上下文->视频编码->处理为视频压缩数据格式 AVFormatContext *avformat_context = avformat_alloc_context(); //注意事项:FFm ...
分类:
其他好文 时间:
2020-04-22 14:57:47
阅读次数:
123
Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and ino ...
分类:
其他好文 时间:
2020-04-22 12:51:03
阅读次数:
65
我最近在群里面看很多人问fiddler怎么抓手机的包,那就写一个吧 第一步打开Tools,点击options 然后按如下设置就可以了,询问是否安装证书点yes 设置好后在手机wifi里设置代理ip 代理主机名这样获取:打开cmd,输入命令ipconfig /all 端口号必须和你fiddler,这里 ...
分类:
移动开发 时间:
2020-04-22 11:42:34
阅读次数:
72
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. N ...
分类:
其他好文 时间:
2020-04-22 10:01:42
阅读次数:
64
1.yum 安装后先跑一下系统自带的安全脚本,否则数据库很不安全,任何人都可以登录 [root@xixi ~]# mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL Maria ...
分类:
数据库 时间:
2020-04-21 20:04:50
阅读次数:
127
Creating the baseline script When generating a baseline script, SQL Change Automation will generate a single migration script for all the objects in y ...
分类:
数据库 时间:
2020-04-21 18:23:33
阅读次数:
76
1.打开靶场,随便点击一个页面,带参数,猜想sql注入,单引号判断,弹出警告 2.看提示,and也不能用了,先用order by暴字段数,order by 10返回正常,order by 11报错,有10个字段数 3.union select也不能用,猜想是cookie注入,把参数id=169去掉后 ...
分类:
其他好文 时间:
2020-04-21 18:19:43
阅读次数:
166