-c command æå®ãããã³ãã³ããå®è¡ script python ãã¡ã¤ã« (.py) ãèªã¿è¾¼ãã§å®è¡ argvs ã¹ã¯ãªããã¾ãã¯ã³ãã³ãã®å¼æ° 対話ã¢ã¼ãã§èµ·åããã¨ããç°å¢å¤æ° PYTHONSTARTUP ã§æå®ããããã¡ã¤ã«ãèªã¿è¾¼ã¿ã¾ãã ãã使ãã¢ã¸ã¥ã¼ã«ã import ãã¦ããã¨ä¾¿å©ã§ãã 詳ãã㯠ãã¥ã¼ããªã¢ã« 2.1. ãè¦ã¦ãã ããã ã¹ã¿ã¼ãã¢ãããã¡ã¤ã«ã®ä¾ï¼ 01: # PYTHONSTARTUP 02: 03: import sys, math, re, os, os.path 04: print 'sys, math, re, os, os.path has been imported.' 2. Python ã¹ã¯ãªããã®æ¸å¼ Python ã¹ã¯ãªããã®æ¸å¼ã¯ä»¥ä¸ã®éãã§ãã 00: #! /usr/bin/env python 01: # -
{{#tags}}- {{label}}
{{/tags}}