Changes between Initial Version and Version 1 of zsjheng/GoogleAppEngine/2.Learning_Python/Python_Interpreter


Ignore:
Timestamp:
Dec 26, 2008, 3:07:22 PM (16 years ago)
Author:
zsjheng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • zsjheng/GoogleAppEngine/2.Learning_Python/Python_Interpreter

    v1 v1  
     1'''基本操作'''
     2
     3由於 Google App Engine 目前只支援 Python 程式語言,因此我們需要對於 Python 有相當地認知。 儘管前面章節已經介紹如何利用 Eclipse 以及 Pydev 所提供的便捷的開發環境來開發、執行撰寫好的 Python 程式,在第一節還是將簡單介紹如何使用 Python Interpreter ,除了對於基礎的 Python 有更深的認知外,還可以直接測試接下來章節的小程式。 [[BR]][[BR]]
     4
     5首先我們先打開命令提示字元 (Windows平台:開始工作列->所有程式>附屬應用程式->命令提示字元;Linux平台:打開任何一個終端程式即可;MAC OS X平台:應用程式->   ->終端器) ,直接輸入 python 送出即可*。 [[BR]][[BR]]
     6
     7以 Windows 平台為例:[[BR]]
     8
     9{{{
     10C:\ python
     11Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32
     12Type "help", "copyright", "credits" or "license" for more information.
     13>>>
     14
     15}}}
     16前面為 Python 執行環境的版本宣告以及協助訊息、版權訊息的指令,而後方出現了 >>> 的提示字元之後即可輸入 Python 程式碼來執行。 [[BR]][[BR]]