- 参数
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 执行完脚本后进入交互模式
- ord, chr
1. ord
ord(u"€") = 8364
2. chr
chr(8364) = u"€"
[python] 1.解释器
原文:http://www.cnblogs.com/lazySmeagol/p/7954082.html