摘要:
孤傲的苍狼 https://www.cnblogs.com/xdp-gacl/ 金角大王 1 http://www.cnblogs.com/alex3714/articles/5885096.html 2 http://www.cnblogs.com/alex3714/articles/518817 阅读全文
摘要:
三联运算 if 1 == 1: name = 'alex'else: name = 'sb' name = 'alex' if 1 == 1 else 'sb lambda f2 = lambda al,a2 : al + a2 + 100ret2= f2(10,20)print(ret2) f3 阅读全文
摘要:
函数 def sendmail(xo,zt,nr='ok'): #默认函数 :默认函数一定要放在最后面 try: import smtplib from email.mime.text import MIMEText from email.utils import formataddr msg = 阅读全文
摘要:
#-*-coding:utf-8-*- http://www.cnblogs.com/linjiqin/p/3674356.html #1、字典 dict = {'name': 'Zara', 'age': 7, 'class': 'First'} #字典转为字符串,返回:<type 'str'> 阅读全文
摘要:
#!/usr/bin/env python #_*_ coding:utf-8 _*_ name = ['abc','dfs',123,'abc'] user = {'name','word','this'} user2 = {'nba','ccb'} A = {123,456,789} B = { 阅读全文
摘要:
pyenv pyenv 依赖安装 yum -y install git gcc make patch zlib-devel gdbm-devel openssl-devel sqlite-devel bzip2-devel readline-devel 安装pyenv 安装git yum -y in 阅读全文
摘要:
安装nginx nginx 下载地址 http://nginx.org/download/nginx-1.8.0.tar.gz 安装nginx的依赖关系 yum install pcre pcre-devel openssl openssl-devel -y 创建用户 useradd www 接下来 阅读全文