{
'ABTEST':'0|1511442013|v1','JSESSIONID':'aaaZY9-p_6O-XceukYv8v','SUID':'8A84F9721E24940A000000005A16C65D','ppmdig':'1511442395000000fb9379546ef121524f1fd4d479cc524b','weixinIndexVisited':1,'sgid':'10-32132643-AVoWx9vicpY3IIPqGUeiaZJsw','sct':'2','pprdig':'hu35kzwSBJpBzsvVWw1cdZmMTWOBbxb_BjPk9VINZ-jNDsqxZr04K-lyXHseigfiEf0xYwwe82D6eBLgDphUyOrPJrwbsI9IK4MqPOTA3AWTdux58TD1daC62b_LUV845lviDZoCcsNsXUkIL-WpaE3DZrMYEpk5k-BXBMj24aE,'ppinf':'5|1511442395|1512651995|dHJ1c3Q6MToxfGNsaWVudGlkOjQ6MjAxN3x1bmlxbmFtZTozNjolRTYlQjMlQTIlRTYlQjYlOUIlRTUlODAlQTklRTUlQkQlQjF8Y3J0OjEwOjE1MTE0NDIzOTV8cmVmbmljazozNjolRTYlQjMlQTIlRTYlQjYlOUIlRTUlODAlQTklRTUlQkQlQjF8dXNlcmlkOjQ0Om85dDJsdUY0d1ZTbVc2dzBQQ2NGRjVLUkh1SXdAd2VpeGluLnNvaHUuY29tfA''black_passportid':'1',}
#coding = utf-8 __autor__ = 'litao' import requests url = 'http://mp.weixin.qq.com/s?src=11×tamp=1511443614&ver=532&signature=JoSo0qHLu59MoHdQkDX*UJV6VaNdV-i9D7d54GlFu1eG-rw3Y7epj9gf0WkFzKjNmZyBi3vgymnG3e*uQgg1dewd58y383ecI0kQgHiy29e4jeHT-c9DCR7u9JdhkU8A&new=1' cookies = { 'ABTEST':'0|1511442013|v1', 'JSESSIONID':'aaaZY9-p_6O-XceukYv8v', 'SUID':'8A84F9721E24940A000000005A16C65D', 'ppmdig':'1511442395000000fb9379546ef121524f1fd4d479cc524b', 'weixinIndexVisited':'1', 'sgid':'10-32132643-AVoWx9vicpY3IIPqGUeiaZJsw', 'sct':'2', 'pprdig':'hu35kzwSBJpBzsvVWw1cdZmMTWOBbxb_BjPk9VINZ-jNDsqxZr04K-lyXHseigfiEf0xYwwe82D6eBLgDphUyOrPJrwbsI9IK4MqPOTA3AWTdux58TD1daC62b_LUV845lviDZoCcsNsXUkIL-WpaE3DZrMYEpk5k-BXBMj24aE', 'ppinf':'5|1511442395|1512651995|dHJ1c3Q6MToxfGNsaWVudGlkOjQ6MjAxN3x1bmlxbmFtZTozNjolRTYlQjMlQTIlRTYlQjYlOUIlRTUlODAlQTklRTUlQkQlQjF8Y3J0OjEwOjE1MTE0NDIzOTV8cmVmbmljazozNjolRTYlQjMlQTIlRTYlQjYlOUIlRTUlODAlQTklRTUlQkQlQjF8dXNlcmlkOjQ0Om85dDJsdUY0d1ZTbVc2dzBQQ2NGRjVLUkh1SXdAd2VpeGluLnNvaHUuY29tfA', 'black_passportid':'1', } html = requests.get(url=url,cookies = cookies).text print(html)
%matplotlib inline
import numpy as npimport matplotlib.pyplot as pltplt.plot(np.arange(30))
%matplotlib inline
fig = plt.figure()ax1 = fig.add_subplot(2,2,1)ax2 = fig.add_subplot(2,2,2)ax3 = fig.add_subplot(2,2,3)from numpy.random import randndata = randn(50).cumsum()plt.plot(data,'k--')ax1.hist(randn(100),bins=20,color='g',alpha=0.3)ax2.scatter(np.arange(30),np.arange(30)*randn(30))
fig,axes = plt.subplots(2,2,figsize=(10,10),sharex=False,sharey=True)
# plt.subplots_adjust(wspace=0.3,hspace=0)for i in range(2): for j in range(2): axes[i,j].hist(randn(500),bins=100,color='g',alpha=0.1)plt.subplots_adjust(wspace=0.3,hspace=0)