码迷,mamicode.com
首页 >  
搜索关键字:decode ways    ( 3811个结果
python报错UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in range(128),已解决
python在安装时,默认的编码是ascii,当程序中出现非ascii编码时,python的处理常常会报这样的错UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in range(1 ...
分类:编程语言   时间:2020-03-14 22:15:38    阅读次数:70
在 Java 中遍历 HashMap 的5种最佳方式
原文地址: "https://www.javaguides.net/2020/03/5 best ways to iterate over hashmap in java.html" 作者: "Ramesh Fadatare" 翻译:高行行 在本文中,我们将通过示例讨论在 Java 上遍历 "Has ...
分类:编程语言   时间:2020-03-14 14:57:28    阅读次数:55
[FBCTF2019]RCEService
需要用json的格式进行输入 输入 {"cmd":"ls"},只有一个index,php,而且不能读取 然后在先知中找到了后台的源码 <?php putenv('PATH=/home/rceservice/jail'); if (isset($_REQUEST['cmd'])) { $json = ...
分类:其他好文   时间:2020-03-10 13:46:41    阅读次数:90
[LintCode] 1835. Number of Ways to Stay in the Same Place After Some Steps I
You have a pointer at index 00 in an array of size arrLenarrLen. At each step, you can move 11 position to the left, 11 position to the right in the a ...
分类:其他好文   时间:2020-03-09 01:38:36    阅读次数:87
Python记录——字符串的常用方法
1. 编码/解码( encode()/decode() ) encode() 是将 Python 内部默认的编码 unicode编码 转换成其他编码格式,decode()是将其他编码格式转换成 unicode编码,列如: strs = '一段话' print(strs.encode()) #如果没有 ...
分类:编程语言   时间:2020-03-07 09:59:04    阅读次数:90
学习日记(3.6)
Part1.教会模型玩一个叫做 fizz buzz的游戏 我们的小游戏 游戏规则:两个人一起数数,如果遇到可以被3整除的数 不说这个数字说fizz,而遇到可以被5整除的数字说buzz,遇到既可以被3又可以被5整除的数字说fizzbuzz 编程代码如下: 教模型玩小游戏 我们搭建这个模型的时候依旧是昨 ...
分类:其他好文   时间:2020-03-06 21:41:42    阅读次数:91
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
LeetCode 1269. Number of Ways to Stay in the Same Place After Some Steps
原题链接在这里:https://leetcode.com/problems/number-of-ways-to-stay-in-the-same-place-after-some-steps/ 题目: You have a pointer at index 0 in an array of size ...
分类:其他好文   时间:2020-03-02 14:34:45    阅读次数:88
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
3811条   上一页 1 ... 22 23 24 25 26 ... 382 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!