摘要: 1 global 2 log 127.0.0.1 local2 3 daemon 4 maxconn 256 5 log 127.0.0.1 local2 info 6 defaults 7 log global 8 mode http 9 timeout connect 5000ms 10 tim 阅读全文
posted @ 2017-04-09 16:50 shy车队破风手 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1 def menu(): 2 #用户交互界面 3 user_name = input("请输入在用户名:") 4 password = input("请输入密码:") 5 return user_name,password #以元组形式返回值 6 ''' 7 alex1 1111 8 alex2 2222 9 a... 阅读全文
posted @ 2017-04-09 09:37 shy车队破风手 阅读(343) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*- #1、字典 dict = {'name': 'Zara', 'age': 7, 'class': 'First'} #字典转为字符串,返回: {'age': 7, 'name': 'Zara', 'class': 'First'} print type(str(dict)), str(dict) #字典可以转为元组,返回:('age'... 阅读全文
posted @ 2017-04-09 09:34 shy车队破风手 阅读(244) 评论(0) 推荐(0) 编辑