摘要:
数据结构 1. list a = [1, 2, 3] for i in a: if i > 2: a.insert(0, i) # a = 死循环 for i in a[:]: if i > 2: a.insert(0, i) # a = [3, 1, 2, 3] 控制流 1. for... 阅读全文
摘要:
参数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 t 阅读全文