【Python】在cmd中运行Python程序
2018-08-24 本文已影响3人
Natsuka
cd +py文件所在路径
python +文件py
C:\Users\Administrator>cd C:\Users\Administrator\Desktop\lianxi
C:\Users\Administrator\Desktop\lianxi>python untitled0.py
[['var1', 1.0], ['var2', 'a']]
{'var1': 1.0, 'var2': 'a'}
[['var1', 2.0], ['var2', 'b']]
{'var1': 2.0, 'var2': 'b'}
[['var1', 3.0], ['var2', 'c']]
{'var1': 3.0, 'var2': 'c'}
[['var1', 4.0], ['var2', 'a']]
{'var1': 4.0, 'var2': 'a'}
[['var1', 5.0], ['var2', 'b']]
{'var1': 5.0, 'var2': 'b'}
[['var1', 6.0], ['var2', 'c']]
{'var1': 6.0, 'var2': 'c'}
[['var1', 7.0], ['var2', 'a']]
{'var1': 7.0, 'var2': 'a'}
[['var1', 8.0], ['var2', 'b']]
{'var1': 8.0, 'var2': 'b'}
[['var1', 9.0], ['var2', 'c']]
{'var1': 9.0, 'var2': 'c'}
[['var1', 10.0], ['var2', 'a']]
{'var1': 10.0, 'var2': 'a'}
[{'var1': 1.0, 'var2': 'a'}, {'var1': 2.0, 'var2': 'b'}, {'var1': 3.0, 'var2': 'c'}, {'var1': 4.0, 'var2': 'a'}, {'var1': 5.0, 'var2': 'b'}, {'var1': 6.0, 'var2': 'c'}, {'var1': 7.0, 'var2': 'a'}, {'var1': 8.0, 'var2': 'b'}, {'var1': 9.0, 'var2': 'c'}, {'var1': 10.0, 'var2': 'a'}]
C:\Users\Administrator\Desktop\lianxi>