- 参数
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"€"
转载于:https://www.cnblogs.com/lazySmeagol/p/7954082.html