module:python:checkrunarguments:checkrunarguments
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
module:python:checkrunarguments:checkrunarguments [2021/12/11 10:21] – created omdevelop | module:python:checkrunarguments:checkrunarguments [2022/09/13 11:58] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
] | ] | ||
- | ===== Grundlagen | + | ===== Grundlage |
+ | Aufruf von Python-Scripts über | ||
+ | * Spyder | ||
+ | * Terminal | ||
+ | mit Übergabe-Parametern/ | ||
===== Benutzung ===== | ===== Benutzung ===== | ||
+ | ProgramCode in Python: | ||
+ | <code python> | ||
+ | # | ||
+ | import sys | ||
+ | # | ||
+ | # Aufruf Spyder: | ||
+ | # Strg + F6, RunConfiguration, | ||
+ | # | ||
+ | # Terminal: | ||
+ | # runfile(' | ||
+ | # | ||
+ | # | ||
+ | # Main | ||
+ | # | ||
+ | if (' | ||
+ | # | ||
+ | print(' | ||
+ | # | ||
+ | if (0 < len(sys.argv)): | ||
+ | print(sys.argv) | ||
+ | # | ||
+ | print(' | ||
+ | # | ||
+ | # | ||
+ | </ | ||
- | ===== Versionen ===== | + | Aufruf in Spyder: |
+ | **Strg + F6, RunConfiguration, | ||
+ | {{: | ||
+ | <code python> | ||
+ | runfile(' | ||
+ | args=' | ||
+ | *** CheckRunArguments: | ||
+ | [' | ||
+ | *** CheckRunArguments: | ||
+ | </ | ||
+ | Aufruf in Terminal: | ||
+ | **runfile(' | ||
+ | <code python> | ||
+ | runfile(' | ||
+ | *** CheckRunArguments: | ||
+ | [' | ||
+ | *** CheckRunArguments: | ||
+ | </ | ||
+ | |||
+ | ===== Versionen ===== | ||
+ | {{: | ||
----- | ----- | ||
module/python/checkrunarguments/checkrunarguments.1639214486.txt.gz · Last modified: 2021/12/11 11:21 (external edit)