python 2 pip install ipython[notebook] pip install numpy pip install matplotlib pip install seaborn Python3 pip3 install numpy pip3 install matplotlib pip3 install seaborn pip3 install --upgrade pip pip3 install jupyter jupyter notebook #启动jupter import numpy as np import pandas as pd import matplotlib.pyplot as plt from pandas import Series,DataFrame import csv import json from lxml.html import parse from urlib2 import urlopen from lxml import objectify from StringIO import StringIO import requests %matplotlib inline '''启用pylab模式,可以看图形效果''' jupyter notebook %pylab inline ipython --pylab IPython 基本 Tab 自动补齐 变量? 查看变量通用信息 函数名? 查看函数docstring 函数名?? 查看函数源代码 %run xxx.

Continue reading

1. 扩展 RestTemplate Get 方法, make GET with Request Body.

private static final class HttpComponentsClientHttpRequestWithBodyFactory extends HttpComponentsClientHttpRequestFactory
private static final class HttpGetRequestWithEntity extends HttpEntityEnclosingRequestBase 

refer1: https://cleanprogrammer.net/making-get-request-with-body-using-spring-resttemplate/
refer2: https://mekaso.rocks/get-requests-with-a-request-body-spring-resttemplate-vs-apache-httpclient

Continue reading

Author's picture

Stella Wang

桃李春风一杯酒,江湖夜雨十年灯

SOHO

China