摘要:
三联运算 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 阅读全文