python笨办法学Python程序员

《笨办法学Python》笔记26-----Python中的各种符

2016-04-04  本文已影响1970人  大猫黄

关键字

浅谈 Python 的 with 语句-from ibm website
Python yield 使用浅析-from ibm website
网络exec教程1
网络exec教程2
匿名函数-from cnblogs

数据类型

str : s = 'i am a string'        str1 = "you are a string too!"
float : f = 3.0
int : n = 4
long : l = 60
complex : c = 3e + 26J
list : a = []     b = [1,2,4,"a"]
tuple : [(1, 'a'),("b","c")]
dict : { key1 : value1 , key2 : value2 }
None : 一个`null`对象

python中的数据类型-from 简书

字符串格式化(String Formats)

格式化字符串-from 简书
网络操作符教程-from 菜鸟教程

字符串转义序列(Escape Sequences)

转义字符串-from 简书
转义字符-python官方文档

操作符

运算符-from 简书
运算符-from python官方文档
网络教程-修饰器1
网络教程-修饰器2

特殊操作符

上一篇 下一篇

猜你喜欢

热点阅读