Python 备忘

1. python 中的字符串连接符号是 +

2. python 中的字符串格式符号 %;

格式化输出一个字符串的

print("hello %s" %,"World")
 

输出多个格式的,要用()括起来的形式

print("Hello %s %s" % ('World',"First"));

3. python 的3中序列: 字符串(str),列表(list),元组(tuple)

4. 列表可变,元组不可变

5. pygame的教程:

http://eyehere.net/2011/python-pygame-novice-professional-index/

posted on 2017-01-12 01:13  lbfamous  阅读(150)  评论(0)    收藏  举报

导航