所謂師傅領進門修行看個人,自己的勤奮非常重要,但是前提是要有個好的老師領進正確的門,不能帶跑偏了。學習Python也是一樣,入門很重要,以下就分享下學習Python的入門經驗分享。
1.開發環境的搭建
http://www.php.cn/python-tutorials-157440.html
#基本語法
In [42]: [(x,y) for x in range(3) for y in range(3)] Out[42]: [(0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 1), (2, 2)] In [43]: [[x,y] for x in range(2) for y in range(2)] Out[43]: [[0, 0], [0, 1], [1, 0], [1, 1]]
http://www.php.cn/python-tutorials-157506.html
web開發框架的建構
import web urls = ('/hello', 'hello', ) class hello(object): def GET(self): return 'hello world' if __name__ == "__main__": app = web.application(urls, globals()) app.run()
http://www.php.cn/python-tutorials-375814.html
#以上是Python入門學習的流程分享的詳細內容。更多資訊請關注PHP中文網其他相關文章!