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 10:00] – [Create virtual environment for zipline app and using it] admin | script:python [2025/01/01 04:22] (current) – [Basic Commands] admin | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| </ | </ | ||
| pip 7.1.2 from D: | pip 7.1.2 from D: | ||
| + | </ | ||
| + | ===== Basic Commands ===== | ||
| + | * Check version python:< | ||
| + | python --version | ||
| + | </ | ||
| + | * Check package version< | ||
| + | pip show < | ||
| </ | </ | ||
| ===== Convert Python Script to execute file on windows ===== | ===== Convert Python Script to execute file on windows ===== | ||
| Line 1107: | Line 1114: | ||
| 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.1606384802.txt.gz · Last modified: (external edit)
