[python] 1.解释器

  1. 参数

    1.     -c , -m, -i
      python test.py                   sys.argv = ['test.py']
      python -c 'print "a"'           sys.argv = ['-c']
           python -m test                  sys.argv = ['/home/test.py']
           python -i test.py                执行完脚本后进入交互模式
  2.     ord, chr
    1.    ord
           ord(u"€") = 8364
    2.    chr
           chr(8364) = u"€"
posted @ 2017-12-02 13:57  懒惰的咕噜  阅读(182)  评论(0编辑  收藏  举报