Difference between revisions of "Python -c"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
-c [[cmd]] : program passed in as string (terminates option list) | -c [[cmd]] : program passed in as string (terminates option list) | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[SyntaxError: invalid syntax]]</code> | ||
+ | * <code>[[ModuleNotFoundError: No module named (Python)]]</code> | ||
+ | |||
+ | == Activities == | ||
+ | * Read https://stackoverflow.com/questions/3987041/run-function-from-the-command-line | ||
== See also == | == See also == |
Latest revision as of 18:45, 11 April 2022
python -c 'import your_function; print your_function.hello()'
-c cmd : program passed in as string (terminates option list)
Related[edit]
Activities[edit]
See also[edit]
- Python, PIP, GIL, Flask, Django, Marshmallow,
def
, logging, Pandas, Numpy, AWS Chalice,import
,from
,tuple
,list
, Python exceptions,virtualenv
,.append
,pytz
,TZ
,print
,python3 -c
,os
, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs
, Black (Python), Python list structure, Mypy,variables
, Casting,try:
, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help
, Data Classes, raise
Advertising: