1.开发环境的搭建
http://HdhCmsTestpython-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://HdhCmsTestpython-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://HdhCmsTestpython-tutorials-375814.html
以上就是Python入门学习的流程分享的详细内容,更多请关注Gxl网其它相关文章!
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did81839