这两天要为公司一个项目的服务端写性能测试脚本,其中有一个请求订单号的接口,需要客户端用post请求向服务端发送加密过的token 和订单数据。代码如下:
payload = {'token':token,'order_data':order_data}
r = requests.post(url, data=payload}
但是,服务端返回错误,花了很长时间检查了token和order_d...
分类:
编程语言 时间:
2014-06-05 05:28:23
阅读次数:
839
题目如下:
Tree
You are to determine the value of the leaf node in a given binary treethat is the terminal node of a path of least value from the root of thebinary tree to any le...
分类:
其他好文 时间:
2014-06-05 05:27:11
阅读次数:
268
2014.5.27
reference: C++ primer 5th, $7.6:Static Class Members
TOPIC 1:一个类中的member(data member和function member)可以声明为static,需要申明为static的情况有一下原因:
1:使用的客观需要:需要某个member是associated with the class,not wi...
分类:
编程语言 时间:
2014-06-05 05:19:15
阅读次数:
263
题目如下;
Quadtrees
A quadtree is a representation format used to encode images. The fundamental ideabehind the quadtree is that any image can be split into four quadrants. Each...
分类:
其他好文 时间:
2014-06-05 04:20:06
阅读次数:
226
D3的全称是(Data-Driven Documents),顾名思义可以知道是一个关于数据驱动的文档的javascript类库。如果你不知道什么是javascript,请先学习javascript的相关知识。
说得简单一点,D3.js主要是用于操作数据的,它通过使用HTML、SVG、CSS来给你的数据注入生命,即转换为各种简单易懂的绚丽的图形。...
分类:
Web程序 时间:
2014-06-05 02:41:02
阅读次数:
413
获取deb包:
apt-get download 包名
解压deb包:
在这里保证你已经下载好了deb包,并且自己已经在deb包所在的目录了,然后解压缩deb包
ar -x pakname.deb
解压deb完毕后会发现多出几个文件,这里主要用到data.tar.gz等包,这个是放着二进制文件的包,用tar解压这个包
tar -zxf data.tar.gz...
分类:
其他好文 时间:
2014-06-05 01:19:30
阅读次数:
309
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
us...
分类:
其他好文 时间:
2014-06-05 00:31:37
阅读次数:
309
1:连接oracle
A:安装oracle服务端(11G/10G)
B:添加引用:
C:引入命名空间:using System.Data.OracleClient;
D:连接字符:
public OracleConnection getOracleConnection(String user,String password,String url)
{...
分类:
数据库 时间:
2014-06-05 00:09:39
阅读次数:
476
哈希表的链地址法来解决冲突问题将所有关键字为同义词的记录存储在同一个线性链表中,假设某哈希函数产生的哈希地址在区间[0, m -
1]上,则设立一个至振兴向量Chain ChainHash[m];数据结构//链表结点typedef struct _tagNode{ int data;
...
分类:
其他好文 时间:
2014-05-31 19:23:52
阅读次数:
436
3、Setting Up and Configuring Backup and Recovery
这个单元讲述如何启动、与rman client如何互动,准备rman环境,实现备份和恢复策略
注意:尽管闪回数据库和安全还原点不是真的数据库备份,但是它们是数据保护策略一个重要部分。这些特性需要一些初始化设置,这些设置依赖于在备份策略中你怎么混合它们。Chapter 5-Data Protecti...
分类:
其他好文 时间:
2014-05-31 17:35:22
阅读次数:
236