码迷,mamicode.com
首页 >  
搜索关键字:decode    ( 2985个结果
Robot Framework自动化测试(五)--- 开发系统关键字
最近一直在用robot framework 做自动化测试项目,老实说对于习惯直接使用python的情况下,被框在这个工具里各种不爽,当然,使用工具的好处也很多,降低了使用成本与难度;当然,在享受工具带来便利的同时也会受制于工具。对于特定的需求,工具没提供相关的Library和关键字的时候,就只能放弃 ...
分类:其他好文   时间:2018-09-22 12:48:40    阅读次数:197
【转】Python之数据序列化(json、pickle、shelve)
【转】Python之数据序列化(json、pickle、shelve) 本节内容 一、前言 1. 现实需求 每种编程语言都有各自的数据类型,其中面向对象的编程语言还允许开发者自定义数据类型(如:自定义类),Python也是一样。很多时候我们会有这样的需求: 把内存中的各种数据类型的数据通过网络传送给 ...
分类:编程语言   时间:2018-09-19 11:34:42    阅读次数:174
《Python》网络编程之验证客户端链接的合法性、socketserver模块
一、socket的更多方法介绍 官方文档对socket模块下的socket.send()和socket.sendall()解释如下: socket.send(string[, flags]) Send data to the socket. The socket must be connected ...
分类:编程语言   时间:2018-09-17 19:56:47    阅读次数:187
18-(unicode error) 'unicodeescape' codec can't decode bytes in position 16-17: truncated \uXXXX escape
读取文件时碰到问题: 1.(unicode error) 'unicodeescape' codec can't decode bytes in position 16-17: truncated \uXXXX escape 在stackoverflow上找到了答案,就是将在路径字符串前加 r : ...
分类:其他好文   时间:2018-09-17 19:43:36    阅读次数:2788
ubuntu下的python网页解析库的安装——lxml, Beautiful Soup, pyquery, tesserocr
lxml 的安装(xpath) pip3 install lxml 可能会缺少以下依赖: sudo apt-get install -y python3-dev build-e ssential libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-d ...
分类:编程语言   时间:2018-09-17 17:36:09    阅读次数:219
oracle的decode函数
以下转自百度, 类似于case... when... then...else...end... DECODE函数是ORACLE PL/SQL是功能强大的函数之一,目前还只有ORACLE公司的SQL提供了此函数,其他数据库厂商的SQL实现还没有此功能。DECODE有什么用途 呢? 先构造一个例子,假设 ...
分类:数据库   时间:2018-09-16 23:55:58    阅读次数:258
php后门简单检测脚本
# coding:utf-8 import os import sys import re rulelist = [ '(\$_(GET|POST|REQUEST)\[.{0,15}\]\(\$_(GET|POST|REQUEST)\[.{0,15}\]\))', '(base64_decode\(... ...
分类:Web程序   时间:2018-09-16 16:16:35    阅读次数:182
python标准库:base64模块
Base64是一种用64个字符来表示任意二进制数据的方法。(将二进制编码转换成ASCII字符)。使用A-Z,a-z,0-9,/,+这64个字符。 ...
分类:编程语言   时间:2018-09-15 11:30:54    阅读次数:489
Android-BitmapUtil工具类
Bitmap工具类,获取Bitmap对象 public class BitmapUtil { private BitmapUtil(){} /** * 根据资源id获取指定大小的Bitmap对象 * @param context 应用程序上下文 * @param id 资源id * @param h... ...
分类:移动开发   时间:2018-09-14 18:27:25    阅读次数:256
subprocess模块
import subprocess obj=subprocess.Popen(‘tasklist‘,shell=True, #shell=True调用命令解释器来解释前面的命令,发信号并不执行 stdout=subprocess.PIPE, #PIPE管道 stderr=subprocess.PIPE, #放入报错信息 ) print(obj.stdout.read().decode(‘gbk‘)) #只能取一次值,取出格式是b格式 import subprocess obj=subprocess.Popen(‘list‘,shell=True, stdout=subprocess.PIPE, #PIPE管道 stderr=subprocess.PIPE, #放入报错信息 ) print(obj.stderr.read().decode(‘gbk‘
分类:其他好文   时间:2018-09-14 10:52:57    阅读次数:161
2985条   上一页 1 ... 87 88 89 90 91 ... 299 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!