ファイル名の前に “-i” をつける
$ ~/Desktop$ python -i chap1-4-1.py
-i When a script is passed as first argument or the -c option is
used, enter interactive mode after executing the script or the
command.
ファイル名の前に “-i” をつける
$ ~/Desktop$ python -i chap1-4-1.py
-i When a script is passed as first argument or the -c option is
used, enter interactive mode after executing the script or the
command.