script:python
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
script:python [2020/11/26 09:59] – [Create virtual environment for zipline app and using it] admin | script:python [2023/11/28 09:35] (current) – [The try-except clause] admin | ||
---|---|---|---|
Line 223: | Line 223: | ||
- Step3: Install zipline in environment:< | - Step3: Install zipline in environment:< | ||
conda install -c Quantopian zipline | conda install -c Quantopian zipline | ||
- | </ | + | </ |
=== Other commands of conda === | === Other commands of conda === | ||
* List environments in conda< | * List environments in conda< | ||
Line 1107: | Line 1107: | ||
else: | else: | ||
If there is no exception then execute this block. | If there is no exception then execute this block. | ||
+ | </ | ||
+ | try: | ||
+ | You do your operations here; | ||
+ | | ||
+ | except: | ||
+ | If there is any exception, then execute this block. | ||
+ | | ||
</ | </ | ||
* The except clause with multiple exceptions< | * The except clause with multiple exceptions< |
script/python.1606384775.txt.gz · Last modified: 2022/10/29 16:15 (external edit)