?C:\Users\Miracle.Liao>dir?D:\Python27\py
?驅動器?D?中的卷沒有標簽。
?卷的序列號是?E47B-5302
?D:\Python27\py?的目錄
2016/07/27??23:04????<DIR>??????????.
2016/07/27??23:04????<DIR>??????????..
2016/07/27??23:00????????????????19?hello.py
???????????????1?個文件?????????????19?字節
???????????????2?個目錄?112,549,986,304?可用字節
C:\Users\Miracle.Liao>python
Python?2.7.12?(v2.7.12:d33e0cf91556,?Jun?27?2016,?15:19:22)?[MSC?v.1500?32?bit?(Intel)]?on?win32
Type?"help",?"copyright",?"credits"?or?"license"?for?more?information.
>>>?D:\Python27\py\hello.py
??File?"<stdin>",?line?1
????D:\Python27\py\hello.py
?????^
SyntaxError:?invalid?syntax
>>>?print'Hello,world.'
Hello,world.
>>>
2016-07-28
試下這個
>>>cd D:\Python27\py
>>>python hello.py