- 博客(3)
- 收藏
- 关注
原创 python列表remove使用注意点
list1 = ['a','c','c','c','d','f'] for i in list1: if i == 'c': list1.remove(i) print list1 运行结果:['a', 'c', 'd', 'f']
2019-03-11 22:10:07
1434
原创 python2.x与python3.x使用差别(更新中.....)
中文编码 1.1 、python2中的默认编码格式是ASCLL,python3中默认的是UTF-8 1.2 、在python2环境下如果要显示中文,要在.py文件开头添加# -- coding: UTF-8 -- 或者 #coding=utf-8 (注意:#coding=utf-8 的 = 号两边不要空格。) ...
2018-12-09 20:01:52
197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅