python入门学习
ztono
某大厂后端工程师
展开
-
python中与print有关的一些字符串控制
常用的python转义字符\反斜杠符号 \’ 单引号 \” 双引号 \0 空(null) \n 换行 \v 纵向制表符 \t 横向制表符 \r 回车 \f 换页 \oyy 八进制数yy代表的字符,例如:\o12代表换行(ascii码,即American Standard Code for Information Interchange,美国标准信息交换代码)原创 2017-08-23 20:35:16 · 552 阅读 · 0 评论 -
python中的list和tuple
1.listlist,中文意思是集合,list是一个有序的集合,感觉和STL里面的set类似。常用的操作: .append(element) add element to the end of list.insert(postion,element) add element to specified postion.pop() delete the last element.pop(pos原创 2017-08-23 22:01:04 · 259 阅读 · 0 评论