Python: Run function from the command line - Stack Overflow
經安全檢測,此網站為安全網站,請放心前往原始網址!
Python: Run function from the command line - Stack Overflow
2010年10月21日 - Say in my file i have: def hello(): return 'Hi :)'. How would I run this from ... With the -c (command) argument (assuming your file is named foo.py ):