Can python run on Unix?

Can python run on Unix?
Answer
2 Answers.
You cannot use UNIX commands in your Python script as if they were Python code, echo name is causing a syntax error because echo is not a built-in statement or function in Python. Instead, use print name . To run UNIX commands you will need to create a subprocess that runs the command.
 

Tìm kiếm

Back
Top