Learn Electronics with Raspberry Pi by Stewart Watkiss

Learn Electronics with Raspberry Pi by Stewart Watkiss

Author:Stewart Watkiss
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


After adding a shebang entry and making a program executable, you can run it directly from the command line. The program should be prefixed with ./ (which means run it from the current folder) as shown:

./myprogram.py

This makes the program a little easier to run and is a bit more professional than having to type python3 before it. It also makes it easier to run the program with command-line options and to run the program automatically. You will look at these next.

Handling Command-Line Arguments



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.