1.第一步 下载py文件:https://bootstrap.pypa.io/ez_setup.py #!/usr/bin/env python """ Setuptools bootstrapping installer. Maintained at https://github.com/pypa/setuptools/tree/bootstrap. Run this script to install or upgrade setuptools. ""
类实现wsgi app from wsgiref.util import setup_testing_defaults from wsgiref.simple_server import make_server class Simple_App: def __init__(self,environ,start_response): self.environ = environ self.start_response =start_response status = '200 ok' header
#一,集合类型###找出两个集合的交集并将结果打印出来# python_stu=['egon','alex','kevin','王大炮','李二丫']# linux_stu=['张铁蛋','刘铜蛋','赵金蛋','alex','kevin','oldboy']# res=[]# for stu1 in python_stu:# if stu1 in linux_stu:# res.append(stu1)# print(res)##2 集合# 定义方式:在{}用逗号分割开多个元素,但是集合内元素