- 博客(10)
- 资源 (26)
- 收藏
- 关注
转载 Python中函数的参数定义和可变参数
Python中函数的参数定义和可变参数刚学用Python的时候,特别是看一些库的源码时,经常会看到func(*args, **kwargs)这样的函数定义,这个*和**让人有点费解。其实只要把函数参数定义搞清楚了,就不难理解了。先说说函数定义,我们都知道,下面的代码定义了一个函数funcAdef funcA(): pass 显然,函数fu
2015-05-22 10:23:40 1235
原创 python 连接mssqlserver方法之pymssql
安装pymssql模块,参照我之前写的博文python中使用第三方模块import sysimport pymssqlclass Mssql: def __init__(self, config): self.cf = config def __Connect(self): try: self.conn = pymss
2015-05-19 20:24:58 13858 1
转载 设置python的默认编码为utf8
(这部分转自南瓜小米粥的博客):这是Python的编码问题,设置python的默认编码为utf8python安装目录:/etc/python2.x/sitecustomize.py 1import sys2reload(sys)
2015-05-19 19:51:48 14305
转载 Python Version 2.7 required which was not found in the registry 问题解决
今天在安装numpy时,出现了Python Version 2.7 required which was not found in the registry错误,解决方案如下。 Python的一些第三方库只到注册表的HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath路径下寻找Python
2015-05-19 16:21:14 1307
转载 python 的日志logging模块学习
1.简单的将日志打印到屏幕 import logginglogging.debug('This is debug message')logging.info('This is info message')logging.warning('This is warning message') 屏幕上打印:WARNING:r
2015-05-18 17:31:17 1237
转载 Python安装与环境配置
转http://jingyan.baidu.com/article/eb9f7b6da950c4869364e8f5.html
2015-05-18 17:30:14 1173
原创 python中使用第三方模块
python中出现此类错误ImportError: No module named 'pymssql'是由于没有下载第三方模块再此提供第三方包安装方法:1.下载需要使用的第三方包,下载地址:http://www.lfd.uci.edu/~gohlke/pythonlibs/2.whl文件安装下载.whl包先pip install wheel
2015-05-18 17:22:44 6295 1
转载 Python语言十分钟快速入门
【简介】Python(蟒蛇)是一种动态解释型的编程语言。Python可以在Windows、UNIX、MAC等多种操作系统上使用,也可以在Java、.NET开发平台上使用。python logo【特点】1 Python使用C语言开发,但是Python不再有C语言中的指针等复杂的数据类型。2 Python具有很强的面向对象特性,而且简化了面向对象的实
2015-05-18 17:16:22 1679
PyGobject(pygtk3)全解——超多代码
2016-08-04
python连接各类数据库
2016-05-31
Canvas_drawPoints
2015-12-22
自定义视图的交互事件
2015-12-22
Android自定义View
2015-12-19
MyCompoundView自定义复合控件
2015-12-18
AttributeSet自定义View属性获取
2015-12-14
ShowImageView
2015-11-04
ImageView.zip
2015-11-03
Button.zip
2015-10-30
TableLayout_Calculator
2015-10-28
Android RelativeLayout Calculator计算器界面
2015-10-28
Android Framelayout显示静态和动态的扑克牌
2015-10-27
Android LinearLayout.LayoutParams 使用方法
2015-10-26
Weight.zip
2015-10-26
BaseLine.zip
2015-10-24
Android Gravity
2015-10-23
MultiTextView
2015-10-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人