PHP前端开发

Python入门学习的流程分享

百变鹏仔 3小时前 #Python
文章标签 入门

所谓师傅领进门修行看个人,自己的勤奋非常重要,但是前提是要有个好的老师领进正确的门,不能带跑偏了。学习python也一样,入门很重要,下面我就分享下学习python的入门经验分享。

1.开发环境的搭建

http://www.php.cn/python-tutorials-157440.html

基本语法

立即学习“Python免费学习笔记(深入)”;

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