question on python syntax

Andrew Robert arobert at townisp.com
Mon Sep 10 19:53:28 EDT 2007


a.m. wrote:
> If I type this in shell
> 
> $ ./yourfile.py 12:34 PM &
> 
> What does '$', '.', '/' and '& means in this succession? Note: 12:34
> PM is a argument to the yourfile.py.
> 

This not python syntax but Unix shell.

$             = shell prompt
./            = look for the program in my current working directory
yourfile.py   = the program name
12:34         = argument 1
PM            = argument 2
&             = run in background



More information about the Python-list mailing list