用anaconda的pip安装第三方python包的日志
用anaconda的pip安装第三方python包的日志
启动anaconda命令窗口:
开始> 所有程序> anaconda> anaconda prompt
会得到两行提示:
Deactivating environment "d:\Anaconda2"...
Activating environment "d:\Anaconda2"...
安装tushare包
- 在anaconda 命令窗口里: 输入 pip install tushare
- 安装提示信息为:
[Anaconda2] C:\Documents and Settings\Administrator>pip install tushare
Collecting tushare
Downloading tushare-0.5.0.zip (89kB)
45% |██████████████▊ | 40kB 292kB/s eta 0:00:
57% |██████████████████▍ | 51kB 328kB/s eta 0
68% |██████████████████████ | 61kB 393kB/s et
80% |█████████████████████████▊ | 71kB 328kB/
91% |█████████████████████████████▍ | 81kB 35
100% |████████████████████████████████| 92kB
280kB/s
Building wheels for collected packages: tushare
Running setup.py bdist_wheel for tushare ... done
Stored in directory: C:\Documents and Settings\Administrator\Local Settings\Application Data\pip\Cache\wheels\2c\55\89\d4a3052f45104e809b0fd3a546ba6eff89ded4446dcfb0c9a1
Successfully built tushare
Installing collected packages: tushare
Successfully installed tushare-0.5.0
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
[Anaconda2] C:\Documents and Settings\Administrator>
pip install talib
Collecting ta-lib
Downloading TA-Lib-0.4.9.zip (527kB)
34% |███████████▏ | 184kB 149kB/s eta 0:00:03
36% |███████████▉ | 194kB 149kB/s eta 0:00:03
38% |████████████▍ | 204kB 148kB/s eta 0:00:0
40% |█████████████ | 215kB 148kB/s eta 0:00:0
42% |█████████████▋ | 225kB 192kB/s eta 0:00:
44% |██████████████▎ | 235kB 145kB/s eta 0:00
46% |███████████████ | 245kB 145kB/s eta 0:00
48% |███████████████▌ | 256kB 192kB/s eta 0:0
50% |████████████████▏ | 266kB 145kB/s eta 0:
52% |████████████████▊ | 276kB 285kB/s eta 0:
54% |█████████████████▍ | 286kB 285kB/s eta 0
56% |██████████████████ | 296kB 273kB/s eta 0
58% |██████████████████▋ | 307kB 285kB/s eta
60% |███████████████████▎ | 317kB 198kB/s eta
62% |███████████████████▉ | 327kB 198kB/s eta
64% |████████████████████▌ | 337kB 285kB/s et
65% |█████████████████████ | 348kB 198kB/s et
67% |█████████████████████▊ | 358kB 192kB/s e
69% |██████████████████████▍ | 368kB 284kB/s
71% |███████████████████████ | 378kB 273kB/s
73% |███████████████████████▋ | 389kB 273kB/s
75% |████████████████████████▏ | 399kB 198kB/
77% |████████████████████████▉ | 409kB 198kB/
79% |█████████████████████████▌ | 419kB 273kB
81% |██████████████████████████ | 430kB 192kB
83% |██████████████████████████▊ | 440kB 198k
85% |███████████████████████████▎ | 450kB 273
87% |████████████████████████████ | 460kB 204
89% |████████████████████████████▌ | 471kB 20
91% |█████████████████████████████▏ | 481kB 2
93% |█████████████████████████████▉ | 491kB 2
95% |██████████████████████████████▍ | 501kB
96% |███████████████████████████████ | 512kB
98% |███████████████████████████████▋| 522kB
100% |████████████████████████████████| 532kB
198kB/s
Building wheels for collected packages: ta-lib
Running setup.py bdist_wheel for ta-lib ... error
Complete output from command d:\Anaconda2\python.exe -u -c "import setuptools,
tokenize;file='c:\docume1\admini1\locals~1\temp\pip-build-3etaep\ta
-lib\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().re
place('\r\n', '\n'), file, 'exec'))" bdist_wheel -d c:\docume1\admini1\loc
als~1\temp\tmphu1uk_pip-wheel- --python-tag cp27:
c:\docume1\admini1\locals~1\temp\pip-build-3etaep\ta-lib\setup.py:77:
UserWarning:
Cannot find ta-lib library, installation may fail.
warnings.warn('Cannot find ta-lib library, installation may fail.')
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\talib
copying talib_init_.py -> build\lib.win32-2.7\talib
copying talib\deprecated.py -> build\lib.win32-2.7\talib
copying talib\test_abstract.py -> build\lib.win32-2.7\talib
copying talib\test_data.py -> build\lib.win32-2.7\talib
copying talib\test_func.py -> build\lib.win32-2.7\talib
running build_ext
skipping 'talib\common.c' Cython extension (up-to-date)
building 'talib.common' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27
Failed building wheel for ta-lib
Running setup.py clean for ta-lib
Failed to build ta-lib
Installing collected packages: ta-lib
Running setup.py install for ta-lib ... error
Complete output from command
d:\Anaconda2\python.exe -u -c "
import setuptools, tokenize;
file='c:\docume1\admini1\locals~1\temp\pip-build-3etaep\talib\setup.py'; exec(compile(getattr(tokenize, 'open', open)
(file).read().replace('\r\n', '\n'), file, 'exec'))"
install --record c:\docume1\admini1\locals~1\temp\pip-3un8gp-record\install-record.txt --single-version-externally-managed --compile: c:\docume1\admini1\locals~1\temp\pip-build-3etaep\ta-lib\setup.py:77:
User Warning: Cannot find ta-lib library, installation may fail.
warnings.warn('Cannot find ta-lib library, installation may fail.')
running install
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\talib
copying talib_init_.py -> build\lib.win32-2.7\talib
copying talib\deprecated.py -> build\lib.win32-2.7\talib
copying talib\test_abstract.py -> build\lib.win32-2.7\talib
copying talib\test_data.py -> build\lib.win32-2.7\talib
copying talib\test_func.py -> build\lib.win32-2.7\talib
running build_ext
skipping 'talib\common.c' Cython extension (up-to-date)
building 'talib.common' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).
Get it from http://aka.ms/vcpython27
Command "d:\Anaconda2\python.exe -u -c "import setuptools, tokenize;file='c:
\docume1\admini1\locals~1\temp\pip-build-3etaep\ta-lib\setup.py';exec(c
ompile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), _
file_, 'exec'))" install --record c:\docume1\admini1\locals~1\temp\pip-3un8g
p-record\install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in c:\docume1\admini1\locals~1\temp\pip-build-3etaep\ta-lib
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
[Anaconda2] C:\Documents and Settings\Administrator>
正确安装talib的步骤
http://bbs.pinggu.org/thread-4154495-1-1.html
我不清楚下面这个能否解决你的问题。我是在安装TA-Lib的时候,从官网talib org下载的怎么都不能装,用anaconda装也不行。最后是从这个帖子,发现好像官网的是32位,我们要下64位的:
http://stackoverflow.com/questions/28103010/error-installing-ta-lib-for-anaconda
找到这个link:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
从那边下载的这个:
TA_Lib-0.4.9-cp35-none-win_amd64.whl
然后我是在windows的cmd里面pip install TA_Lib-0.4.9-cp35-none-win_amd64.whl这样解决的。
btw我的环境是64位的win10,直接安装的Anaconda(python3.x)。
1. 从加州大学的python扩展库里下载适合的轮子
2. pip install TA_Lib-0.4.9-cp27-none-win32.whl
Unofficial Windows Binaries for Python Extension Packages
下载 TA_Lib-0.4.9-cp27-none-win32.whl from 加州大学的python扩展库里
有6个whl文件, 需要下载适合自己的whl文件:
TA-Lib, a wrapper for the TA-LIB Technical Analysis Library.
TA_Lib-0.4.9-cp27-none-win32.whl
TA_Lib-0.4.9-cp27-none-win_amd64.whl
TA_Lib-0.4.9-cp34-none-win32.whl
TA_Lib-0.4.9-cp34-none-win_amd64.whl
TA_Lib-0.4.9-cp35-none-win32.whl
TA_Lib-0.4.9-cp35-none-win_amd64.whl
然后在cmd窗口里安装:
D:\DB>pip install TA_Lib-0.4.9-cp27-none-win32.whl
Processing d:\db\ta_lib-0.4.9-cp27-none-win32.whl
Installing collected packages: TA-Lib
Successfully installed TA-Lib-0.4.9
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
升级pip版本从8.1.2 到 9.0.1
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
35% |███████████▎ | 440kB 1.3MB/s eta 0:00:01
35% |███████████▌ | 450kB 1.6MB/s eta 0:00:01
36% |███████████▊ | 460kB 1.3MB/s eta 0:00:01
37% |████████████ | 471kB 1.3MB/s eta 0:00:01
38% |████████████▎ | 481kB 1.3MB/s eta 0:00:0
39% |████████████▌ | 491kB 1.3MB/s eta 0:00:0
39% |████████████▉ | 501kB 1.3MB/s eta 0:00:0
40% |█████████████ | 512kB 1.6MB/s eta 0:00:0
41% |█████████████▎ | 522kB 1.3MB/s eta 0:00:
42% |█████████████▋ | 532kB 819kB/s eta 0:00:
43% |█████████████▉ | 542kB 939kB/s eta 0:00:
44% |██████████████ | 552kB 939kB/s eta 0:00:
44% |██████████████▍ | 563kB 930kB/s eta 0:00
45% |██████████████▋ | 573kB 819kB/s eta 0:00
46% |██████████████▉ | 583kB 819kB/s eta 0:00
47% |███████████████▏ | 593kB 726kB/s eta 0:0
48% |███████████████▍ | 604kB 819kB/s eta 0:0
48% |███████████████▊ | 614kB 819kB/s eta 0:0
49% |████████████████ | 624kB 726kB/s eta 0:0
50% |████████████████▏ | 634kB 1.1MB/s eta 0:
51% |████████████████▌ | 645kB 930kB/s eta 0:
52% |████████████████▊ | 655kB 819kB/s eta 0:
53% |█████████████████ | 665kB 939kB/s eta 0:
53% |█████████████████▎ | 675kB 930kB/s eta 0
54% |█████████████████▌ | 686kB 1.1MB/s eta 0
55% |█████████████████▊ | 696kB 1.1MB/s eta 0
56% |██████████████████ | 706kB 939kB/s eta 0
57% |██████████████████▎ | 716kB 939kB/s eta
57% |██████████████████▌ | 727kB 1.1MB/s eta
58% |██████████████████▉ | 737kB 939kB/s eta
59% |███████████████████ | 747kB 1.1MB/s eta
60% |███████████████████▎ | 757kB 1.1MB/s eta
61% |███████████████████▋ | 768kB 930kB/s eta
62% |███████████████████▉ | 778kB 1.1MB/s eta
62% |████████████████████ | 788kB 939kB/s eta
63% |████████████████████▍ | 798kB 1.1MB/s et
64% |████████████████████▋ | 808kB 1.1MB/s et
65% |█████████████████████ | 819kB 939kB/s et
66% |█████████████████████▏ | 829kB 1.1MB/s e
66% |█████████████████████▍ | 839kB 1.1MB/s e
67% |█████████████████████▊ | 849kB 1.1MB/s e
68% |██████████████████████ | 860kB 1.1MB/s e
69% |██████████████████████▏ | 870kB 1.1MB/s
70% |██████████████████████▌ | 880kB 1.1MB/s
70% |██████████████████████▊ | 890kB 1.1MB/s
71% |███████████████████████ | 901kB 930kB/s
72% |███████████████████████▎ | 911kB 1.1MB/s
73% |███████████████████████▌ | 921kB 1.1MB/s
74% |███████████████████████▊ | 931kB 1.1MB/s
75% |████████████████████████ | 942kB 1.1MB/s
75% |████████████████████████▎ | 952kB 939kB/
76% |████████████████████████▌ | 962kB 1.1MB/
77% |████████████████████████▉ | 972kB 1.1MB/
78% |█████████████████████████ | 983kB 1.1MB/
79% |█████████████████████████▎ | 993kB 1.1MB
79% |█████████████████████████▋ | 1.0MB 1.3MB
80% |█████████████████████████▉ | 1.0MB 1.1MB
81% |██████████████████████████▏ | 1.0MB 1.3M
82% |██████████████████████████▍ | 1.0MB 1.1M
83% |██████████████████████████▋ | 1.0MB 1.1M
84% |███████████████████████████ | 1.1MB 1.3M
84% |███████████████████████████▏ | 1.1MB 1.1
85% |███████████████████████████▍ | 1.1MB 1.3
86% |███████████████████████████▊ | 1.1MB 1.1
87% |████████████████████████████ | 1.1MB 1.1
88% |████████████████████████████▏ | 1.1MB 1.
88% |████████████████████████████▌ | 1.1MB 1.
89% |████████████████████████████▊ | 1.1MB 1.
90% |█████████████████████████████ | 1.1MB 1.
91% |█████████████████████████████▎ | 1.1MB 1
92% |█████████████████████████████▌ | 1.2MB 1
93% |█████████████████████████████▊ | 1.2MB 1
93% |██████████████████████████████ | 1.2MB 1
94% |██████████████████████████████▎ | 1.2MB
95% |██████████████████████████████▌ | 1.2MB
96% |██████████████████████████████▉ | 1.2MB
97% |███████████████████████████████ | 1.2MB
97% |███████████████████████████████▍| 1.2MB
98% |███████████████████████████████▋| 1.2MB
99% |███████████████████████████████▉| 1.2MB
100% |████████████████████████████████| 1.3MB 312kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Successfully installed pip-9.0.1
pip install zipline
[Anaconda2] C:\Documents and Settings\Administrator>pip install -c Quantopian zipline
Could not open requirements file: [Errno 2] No such file or directory: 'Quantopian'
windows用户用conda install 来安装zipline
Install — Zipline 1.0.2 documentation http://www.zipline.io/install.html
For windows, the easiest and best supported way to install zipline is to use Conda.
Installing with conda
Another way to install Zipline is via the conda package manager, which comes as part of Continuum Analytics’ Anaconda distribution.
The primary advantage of using Conda over pip is that conda natively understands the complex binary dependencies of packages like numpy and scipy. This means that conda can install Zipline and its dependencies without requiring the use of a second tool to acquire Zipline’s non-Python dependencies.
For instructions on how to install conda, see the Conda Installation Documentation
Once conda has been set up you can install Zipline from our Quantopian channel:
conda install -c Quantopian zipline
[Anaconda2] C:\Documents and Settings\Administrator>conda install -c Quantopian zipline
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ......
Solving package specifications: .........
Package plan for installation in environment d:\Anaconda2:
The following packages will be downloaded:
package | build
---------------------------|-----------------
conda-env-2.6.0 | 0 488 B
python-2.7.13 | 0 22.7 MB
logbook-0.12.5 | py27_0 111 KB
numpy-1.8.2 | py27_0 15.7 MB
pyparsing-2.0.1 | py27_0 61 KB
requests-2.12.4 | py27_0 754 KB
ruamel_yaml-0.11.14 | py27_1 203 KB
dateutil-2.4.1 | py27_0 218 KB
numexpr-2.3.1 | np18py27_0 116 KB
scipy-0.14.0 | np18py27_0 33.1 MB
ta-lib-0.4.8 | np18py27_0 6.3 MB
cryptography-1.4 | py27_0 273 KB
pandas-0.14.1 | np18py27_0 3.7 MB
scikit-learn-0.15.2 | np18py27_0 3.0 MB
matplotlib-1.4.0 | np18py27_0 41.7 MB
pyopenssl-16.2.0 | py27_0 68 KB
conda-4.3.4 | py27_0 520 KB
zipline-0.7.0 | np18py27_0 241 KB
------------------------------------------------------------
Total: 128.8 MB
The following NEW packages will be INSTALLED:
dateutil: 2.4.1-py27_0
logbook: 0.12.5-py27_0
ruamel_yaml: 0.11.14-py27_1
ta-lib: 0.4.8-np18py27_0
zipline: 0.7.0-np18py27_0
The following packages will be UPDATED:
conda: 4.0.5-py27_0 --> 4.3.4-py27_0
conda-env: 2.4.5-py27_0 --> 2.6.0-0
cryptography: 1.3-py27_0 --> 1.4-py27_0
pyopenssl: 0.15.1-py27_2 --> 16.2.0-py27_0
python: 2.7.11-4 --> 2.7.13-0
requests: 2.9.1-py27_0 --> 2.12.4-py27_0
The following packages will be DOWNGRADED:
matplotlib: 1.5.1-np110py27_0 --> 1.4.0-np18py27_0
numexpr: 2.5-np110py27_0 --> 2.3.1-np18py27_0
numpy: 1.10.4-py27_0 --> 1.8.2-py27_0
pandas: 0.18.0-np110py27_0 --> 0.14.1-np18py27_0
pyparsing: 2.0.3-py27_0 --> 2.0.1-py27_0
scikit-learn: 0.17.1-np110py27_0 --> 0.15.2-np18py27_0
scipy: 0.17.0-np110py27_0 --> 0.14.0-np18py27_0
Proceed ([y]/n)?y
Fetching packages ...
conda-env-2.6. 100% |###############################| Time: 0:00:00 0.00 B/s
python-2.7.13- 100% |###############################| Time: 0:02:46 143.00 kB/s
logbook-0.12.5 100% |###############################| Time: 0:00:22 4.97 kB/s
numpy-1.8.2-py 13% |#### | Time: 0:14:15 2.55 kB/s
pyinstaller 3.2.1 @ 2017/3
[Anaconda2] C:\Documents and Settings\Administrator>pip install pyinstaller
Collecting pyinstaller
Downloading PyInstaller-3.2.1.tar.bz2 (2.4MB)
100% |████████████████████████████████| 2.4MB 152kB/s
Requirement already satisfied: setuptools in d:\anaconda2\lib\site-packages\setuptools-20.3-py2.7.egg (from pyinstaller)
Requirement already satisfied: future in d:\anaconda2\lib\site-packages (from pyinstaller)
Building wheels for collected packages: pyinstaller
Running setup.py bdist_wheel for pyinstaller ... done
Stored in directory: C:\Documents and Settings\Administrator\Local Settings\Application Data\pip\Cache\wheels\0b\d9\68
\d6ac226a577f9a16459d486c5fe1a71cdc5846dd6515a13b0f
Successfully built pyinstaller
Installing collected packages: pyinstaller
Successfully installed pyinstaller-3.2.1
quantdigger @2017/3/27
[Anaconda2] C:\Documents and Settings\Administrator>pip install quantdigger
Collecting quantdigger
Downloading QuantDigger-0.400.tar.gz (167kB)
100% |████████████████████████████████| 174kB 284kB/s
Requirement already satisfied: logbook>=0.12.5 in d:\anaconda2\lib\site-packages (from quantdigger)
Requirement already satisfied: ta-lib>=0.4.8 in d:\anaconda2\lib\site-packages (from quantdigger)
Collecting progressbar2>=3.6.2 (from quantdigger)
Downloading progressbar2-3.16.0-py2.py3-none-any.whl
Requirement already satisfied: matplotlib>=1.5.1 in d:\anaconda2\lib\site-packages (from quantdigger)
Requirement already satisfied: pandas>=0.17.1 in d:\anaconda2\lib\site-packages (from quantdigger)
Requirement already satisfied: python-dateutil>=2.4.2 in d:\anaconda2\lib\site-packages (from quantdigger)
Requirement already satisfied: numpy==1.10.4 in d:\anaconda2\lib\site-packages (from quantdigger)
Collecting python-utils>=2.0.0 (from progressbar2>=3.6.2->quantdigger)
Downloading python_utils-2.0.1-py2.py3-none-any.whl
Requirement already satisfied: pytz in d:\anaconda2\lib\site-packages (from matplotlib>=1.5.1->quantdigger)
Requirement already satisfied: cycler in d:\anaconda2\lib\site-packages (from matplotlib>=1.5.1->quantdigger)
Requirement already satisfied: pyparsing!=2.0.4,>=1.5.6 in d:\anaconda2\lib\site-packages (from matplotlib>=1.5.1->quant
digger)
Requirement already satisfied: six>=1.5 in d:\anaconda2\lib\site-packages (from python-dateutil>=2.4.2->quantdigger)
Building wheels for collected packages: quantdigger
Running setup.py bdist_wheel for quantdigger ... done
Stored in directory: C:\Documents and Settings\Administrator\Local Settings\Application Data\pip\Cache\wheels\df\ee\3e
\dd97bc47430d3be3ac19e37d02a86c353f61547b30b16da8be
Successfully built quantdigger
Installing collected packages: python-utils, progressbar2, quantdigger
Successfully installed progressbar2-3.16.0 python-utils-2.0.1 quantdigger-0.400
[Anaconda2] C:\Documents and Settings\Administrator>
用anaconda的pip安装第三方python包的日志的更多相关文章
- 用anaconda的pip安装第三方python包
启动anaconda命令窗口: 开始> 所有程序> anaconda> anaconda prompt会得到两行提示: Deactivating environment " ...
- 【Python使用】使用pip安装卸载Python包(含离线安装Python包)未完成???
pip 是 Python 包管理工具,该工具提供了对Python包的查找.下载.安装.卸载的功能.Python 2.7.9 + 或 Python 3.4+ 以上版本都自带 pip 工具. pip使用( ...
- JuPyter(IPython) Notebook中通过pip安装第三方Python Module
JuPyter(IPython) Notebooks中使用pip安装Python的模块 刚开始接触JuPyter Notebook的时候觉得这是个不错的写技术博客的工具,可以很直观的把代码和结果结合在 ...
- python安装第三方的包
转载自:http://blog.csdn.net/xyqzki/article/details/38414433 第一种基本安装方法 1 下载第三方包,解压 2 在命令提示符里输入cmd,然后用cd进 ...
- 解决Python pip安装第三方包慢的问题
解决Python pip安装第三方包慢的问题 主要是修改源,国内的源有几个 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi ...
- python 之 配置环境变量、通过pip 安装第三方库
配置环境变量 右击桌面上的“此电脑”—>“属性”—>“高级系统设置”—>右下角“环境变量”—>双击“系统变量”里的“Path”—>点击“新建”—>输入python的 ...
- python使用pip安装第三方模块遇到的问题及解决方法
python使用pip安装第三方模块遇到的问题及解决方法 关注公众号"轻松学编程"了解更多. 使用国内源: 清华:https://pypi.tuna.tsinghua.edu.cn ...
- 多python版本下,使用pip安装第三方库
说明:win10系统,先安装有Python3.5.2,后又安装了Python2.7.13(并重命名了Python27文件夹下python.exe为python2.7.13.exe),试图使用pip安装 ...
- (python pip安装第三方库超时问题(raise ReadTimeoutErrorself._pool, None, 'Read timed out.')
(python pip安装第三方库超时问题(raise ReadTimeoutErrorself._pool, None, ‘Read timed out.’)pip工具安装百度经验链接: pip安装 ...
随机推荐
- UIImage 和 UIImageView区别
// // ViewController.m // 06-UIImage 和 UIImageView // // Created by Stephen on 16/4/18. // Copyright ...
- Mesos架构
Mesos Architecture 上图显示了 Mesos 的主要组成部分. Mesos 由一个 master daemon 来管理 slave daemon 在每个集群节点上的运行, mesos ...
- 转:HTTP协议详解(真的很经典)
转自:http://blog.csdn.net/gueter/archive/2007/03/08/1524447.aspx Author :Jeffrey 引言 HTTP是一个属于应用层的面向对象的 ...
- 关于VC中的错误处理
include <exception> try {} cache(exception &e) { cout<<e.what()<<endl; } 但 ...
- asp 正则替换函数
Function RegExpTest(patrn,str1,strng) Dim regEx',str1 ' 建立变量 'str1 = "The quick brown fox jumpe ...
- [转] Spring Security(01)——初体验
[转自:http://haohaoxuexi.iteye.com/blog/2154299] 首先我们为Spring Security专门建立一个Spring的配置文件,该文件就专门用来作为Sprin ...
- 剑指offer之有序二维数组查找
大多数人注意到元素是行列有序的,会马上想到对每行(或列)进行二分查找,每行(或列)需要logN时间,N行(或列)共需要NlogN时间,很容易写出如下代码 1 2 3 4 5 6 7 8 9 10 11 ...
- Servlet程序开发-- 过滤器
3种servlet:简单Servlet,过滤Servlet,监听Servlet 1. 简单Servlet:是作为一种程序所必须的开发结构保存下来的. 2. 过滤Servlet:过滤器使用的不是Http ...
- 盖房子(house)
盖房子(house) 题目描述 FJ最近得到了面积为n*m的一大块土地,他想在这块土地上建造一所房子,这个房子必须膏形的.但是,这块土地并非十全十美,上面有很多不平坦的地方(也可以叫瑕疵).这些瑕疵十 ...
- iOS的基本图形绘制
绘图的步骤: 1.获取上下文 2.创建路径(描述路径) 3.把路径添加到上下文 4.渲染上下文 通常在- (void)drawRect:(CGRect)rect这个方法里面绘制图形 为什么要再draw ...