You'll now be able to create a Python script in the current folder.
Instructions
Create a Python script that takes in a command line argument and prints it.
Use output redirection or a command line editor to create a Python script called script.py in the home folder.Add code to the file that will read the first command line argument passed in and print it out
/home/dq$ echo -e 'import sys\nif __name__=="__main__":\n print(sys.argv[1])'
>script.py
bash: script.py: Is a directory
转载请注明原文地址: https://ju.6miu.com/read-1124142.html