码迷,mamicode.com
首页 >  
搜索关键字:decode    ( 2985个结果
work in while
```python url='http://www.baidu.com' while True: resp=requests.get(url).content.decode() selector=etree.HTML(resp) self.parse_data(selector) next_url=... ...
分类:其他好文   时间:2020-03-04 00:13:06    阅读次数:66
python的编码解码问题
深入浅出了解编码和解码的原理:https://zhuanlan.zhihu.com/p/25924333 识别文本文件编码: 1.https://it365.gitlab.io/zh-cn/decode/?81206z 2用notebook++ ...
分类:编程语言   时间:2020-02-29 00:41:36    阅读次数:78
编码对象或者字串中包含Unicode字符怎样转换为中文
```python In [18]: c = '你好' In [20]: d = c.encode('unicode_escape') In [21]: d Out[21]: b'\\u4f60\\u597d' In [23]: e = d.decode('utf-8') In [24]: e Ou... ...
分类:其他好文   时间:2020-02-28 01:00:27    阅读次数:77
Python Class
Basic knowledge: 1. Class VS Instance; class Student(object): def __init__(self, name, score): self.__name = name self.__score = score def print_score ...
分类:编程语言   时间:2020-02-27 01:07:23    阅读次数:62
laravle中常见的数据库加密
// 1.md5加密 $str=md5('123456'); // 2.base64_decode加密 $str2=base64_encode('123456'); // 2.1 base64_解密 $str3= base64_decode($str2); // 3.哈希加密 $str4=\Hash ...
分类:数据库   时间:2020-02-26 14:18:43    阅读次数:77
layui图标不显示 提示Failed to decode downloaded font解决办法
解决方法:build中加过滤存在多级目录要把目录多级处理定位: <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <excludes> <exclude>stati ...
分类:其他好文   时间:2020-02-24 16:46:34    阅读次数:298
ORACLE数据库--order by----ORA-01785 ORDER BY必须是select-list 表达式的数目
sql语句真是博大精深啊! 下面是报错的sql语句: select lb.contno, decode(cont.conttype, '1', cont.appntno, '2', cont.insuredno), decode(cont.conttype, '1', cont.appntname, ...
分类:数据库   时间:2020-02-23 17:57:51    阅读次数:178
在C代码调用C++代码
由于历史原因,以及不同开发人员的技术偏好,C语言和C++语言都有一些独有的非常有价值的项目,因而两种语言的互操作,充分利用前人造的轮子是一件非常有价值的事情。C++代码调用C代码很简单,只要分别在包含的C头文件的开头和结尾加上如下的两个块:123extern "C" {#endif和123}#end... ...
分类:编程语言   时间:2020-02-23 09:19:15    阅读次数:76
scrapy-redis 报 invalid literal for int() with base 10:
我在scrapy settings.py中填的REDIS_URL是这样的, 密码中含有特俗符合, 导致连接不上redis服务器 REDIS_URL = 'redis://:^*,dfdas.*,@192.168.10.34:6379/1' 网上有人说,先encode密码, 连接的时候再decode, ...
分类:其他好文   时间:2020-02-22 23:55:44    阅读次数:113
2020新春战疫公益赛 misc
code_in_morse morse decode后得到: b32 docode后,出现png和IHDR、IDAT一堆乱码 条形码,之后得到: jpg图片,在HxD,发现F5,F5隐写 神器地址:https://gchq.github.io/CyberChef/ easyupload 上传一句话木 ...
分类:其他好文   时间:2020-02-22 12:03:01    阅读次数:100
2985条   上一页 1 ... 19 20 21 22 23 ... 299 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!