python
INGNIGHT
这个作者很懒,什么都没留下…
展开
-
字典数组遍历
from __future__ import print_function card_infos = [{"name":"asda","age":18,"tt":{"asda":00}},{"name":"999","ppp":11},{"111":111}] #find_name = raw_input("please input name:") for i in card_infos:原创 2018-01-07 23:13:31 · 1335 阅读 · 0 评论 -
列表
from __future__ import print_function #-*- coding:utf-8 -*- #可以存不同数据类型 names = ["asda","adsa","ddd",1,2] for i in range(0,len(names)): print(names[i],end="") print(" ",end="") print("") #1原创 2018-01-07 23:42:18 · 223 阅读 · 0 评论 -
python中使用matplotlib问题
一.ImportError: No module named ‘_tkinter’的一种解决方法 导入matplotlib时,出现ImportError: No module named ‘_tkinter’的错误,首先yum list installed | grep ^tk 查看是否存在相应模块,通常原因是tkinter和tk-devel缺失。通过yum install -y tkint原创 2018-01-28 14:52:10 · 486 阅读 · 0 评论 -
python使用
re(正则表达式) 参考: http://docs.python.org/2/library/re.html 参考: http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html 参考: http://blog.csdn.net/jgood/article/details/4277902 gevent/threadi...原创 2018-08-11 23:45:32 · 209 阅读 · 0 评论