1 abs: 取绝对值 2 all:序列中每一个元素作布尔判断,部分元素为空、none、0为False 3 any:序列中有一个元素为真,则为True 4 bool:空、none\0为假,其他为真 5 bytes:编码转换为二进制 6 decode解码原则:用什么样的方式编码,就用对应的方式解码 7 ...
分类:
编程语言 时间:
2019-10-16 00:15:04
阅读次数:
111
PHP htmlspecialchars_decode() 函数 把预定义的 HTML 实体 "<"(小于)和 ">"(大于)转换为字符: stripslashes() html_entity_decode() 函数把 HTML 实体转换为字符。 转自https://bbs.csdn.net/top ...
分类:
数据库 时间:
2019-10-15 21:17:59
阅读次数:
255
打开会一直弹窗。。。。 第二个可以选择关闭,然后查看源码,直接翻到最后会发现一段奇怪的字符串 一看就是flag了,直接复制去解码,这里我使用bp的smart decode直接就破开了 ...
分类:
Web程序 时间:
2019-10-15 09:31:30
阅读次数:
100
起因:学校运河杯报了个项目,制作一个天气预测的装置。我用arduino跑了BME280模块,用蓝牙模块实现两块arduino主从机透传。但是为了分析,还需要提取出数据。因此我用python写了个上位机程序,用pyserial模块实现arduiho和电脑的串口通讯,再用xlwt模块写入excel表格, ...
分类:
编程语言 时间:
2019-10-14 14:35:05
阅读次数:
99
https://thispointer.com/c-11-multithreading-part-1-three-different-ways-to-create-threads/ ...
分类:
编程语言 时间:
2019-10-13 23:25:03
阅读次数:
108
9.31 爬取百度 import urllib.request response=urllib.request.urlopen('http://www.baidu.com')print(response.read().decode('utf-8')) 爬取 10.1 10.2 Python 爬虫架构 ...
分类:
其他好文 时间:
2019-10-12 20:24:21
阅读次数:
146
为数组里的每个元素进行urlencode() 转码 后再用json_encode() 转为json即可, 解码使用json_decode() 示例: foreach ( $result as $keys => $value ) //包含中文的二维数组$result转json,数组内部元素一一使用ur ...
分类:
编程语言 时间:
2019-10-11 18:03:13
阅读次数:
99
第一种a=b'\u6279\u53d1\u548c\u96f6\u552e\u4e1a'print(a.decode('unicode_escape'))第二种(建议用)a="u'"+'\\u6279\\u53d1\\u548c\\u96f6\\u552e\\u4e1a'+"'"print(eval ...
分类:
其他好文 时间:
2019-10-11 14:05:28
阅读次数:
87
打开文件的方式 方式一: 方式二: 打开文件的模式 操作文件的方式 文件的光标问题 修改文件的方式 二进制方式操作文件 读出二进制文件的方法: with open('aa','rb') as f: print(f.read()) f.seek(0) print(f.read().decode('gb ...
分类:
其他好文 时间:
2019-10-10 15:30:52
阅读次数:
72
查看CPU型号:grep "model name" /proc/cpuinfo | uniqdmidecode -s processor-version | uniq 查看物理CPU个数grep "physical id" /proc/cpuinfo | sort -u | wc -lgrep "p ...
分类:
其他好文 时间:
2019-10-09 15:17:54
阅读次数:
106