Quantcast
Channel: CodeSection,代码区,Python开发技术文章_教程 - CodeSec
Browsing all 9596 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Python Class Properties

Posted on June 27, 2016 Class properties are a feature that people coming to python from other object-oriented languages expect, and expect to be easy. Unfortunately, it’s not. In many cases, you don’t...

View Article


Type Hinting in Python 3

python 3.5 added an interesting new library called typing . This adds type hinting to Python. Type hinting is kind of declaring your functions arguments to have a certain type. However, the type...

View Article


Image may be NSFW.
Clik here to view.

Jupyter, SymPy, and floating blocks

June 26, 2016 at 11:44 PM by Dr. Drang I had a few New Year’s resolutions related to python: 2016: 1. conda instead of pip 2. Python 3 instead of 2 3. Jupyter notebooks instead of IPython console...

View Article

Python序列化模型数据为JSON

原文地址: http://52sox.com/use-python-serialization-orm-data-to-json/ 相信使用Python做Web开发的朋友都会遇到这样1个问题,那就是在项目开发中使用模型框架,比如SQLAlchemy、Peewee,我们在做RESTful接口时如何将这些模型序列化为JSON数据。...

View Article

Image may be NSFW.
Clik here to view.

Python 历遍目录

Automate the Boring Stuff 学习笔记 01 使用 os 模块的 walk() 函数可以实现历遍目录的操作,该函数接收一个绝对路径字符串作为必选参数,返回三个参数: 当前目录――指程序当前工作目录――名称(字符串格式) 当前目录――指程序当前所历遍到的目录――下所有子文件夹(列表格式) 当前目录――指程序当前所历遍到的目录――下所有文件(列表格式) 假设有如下文件结构:...

View Article


Why do Ipython cells stopexecuting?

The asterisk next to a cell [*] indicates that the cell is currently executing. While Ipython provides each notebook with it’s own kernel, there is only one kernel per notebook. When that kernel is...

View Article

Image may be NSFW.
Clik here to view.

[Django]用户权限学习系列之设计自有权限管理系统设计思路

若在阅读本片文章遇到权限操作问题,请查看本系列的前两章! http://www.cnblogs.com/CQ-LQJ/p/5609690.html 和 http://www.cnblogs.com/CQ-LQJ/p/5604331.html 现在步入正题,这篇文章是关于自有权限管理系统设计的思路描述,自有权限管理系统是抛弃django自带的后台管理界面,基于自己编写的权限管理界面对用户权限的管理!...

View Article

Python 3 tkinter graphical curve and surface fitter

README.txt Welcome to tkInterFit, an example of creating a cross-platform curve and surface fitting application using tkinter and the pyeq3 fitting library. see...

View Article


Image may be NSFW.
Clik here to view.

mac appium ios python 测试用例

一、下载例子 点击下载测试例子:sample 下载完成后,解压。 二、启动appium 1、appium介绍 2、python脚本介绍 从终端进入:cd Downloads/samplecode-master/sample-code/examples/Python目录下,查看 python ios_simple.py。 可以发现python脚本中的...

View Article


Image may be NSFW.
Clik here to view.

Python 制作 Android 游戏外挂

编 程派微信号:codingpy 本文系作者 阳光树林 授权编程派原创发表,并经编程派编辑,转载请注明出处及微信ID(codingpy)。省略了相关代码,详情请点击阅读原文。 最近在玩一款背单词的手机游戏:单词英雄。这是一个将背单词和卡牌游戏相结合的游戏,通过选择正确的单词意思进行有效攻击,边玩游戏就把单词给背了。 游戏的界面是这样的:...

View Article

environs: 简化环境变量解析

Environs是解析环境变量的python库。它的开发受 envparse 启发,底层使用 marshmallow 验证并序列化值。 安装 pip install environs 基本使用 # export GITHUB_USER=sloria# export API_KEY=123abc# export SHIP_DATE='1984-06-25'# export...

View Article

4 languages poised to out-Python Python

Nothing lasts forever -- including programming languages. What seems like the future of computing today may be tomorrow's footnote, whether deserved or undeserved. python, currently riding high on the...

View Article

Image may be NSFW.
Clik here to view.

My Top 9 Favorite Python Deep Learning Libraries

So you’re interested in deep learning and Convolutional Neural Networks. But where do you start? Which library do you use? There are just so many! Inside this blog post, I detail 9 of my favorite...

View Article


PyDev of the Week: Barry Warsaw

This week we welcome Barry Warsaw ( @pumpichank ) as our PyDev of the Week! Barry works on the Ubuntu operating system for Canonical and he’s the project leader for GNU Mailman. He also used to be the...

View Article

Image may be NSFW.
Clik here to view.

原型到产品:在Arduino上运行Python

原型到产品:在Arduino上运行python 1小时前来源:CSDN 原文:Prototype to production: Running Python with Arduino 作者:Jacob Beningo,嵌入式软件顾问(jacob@beningo.com)翻译:赵屹华 审校:刘翔宇...

View Article


Image may be NSFW.
Clik here to view.

Faster Flask: Why you need gunicorn

While doing some performance test on a new flask microservice, I noticed it was not handling very very many connections per second. Additionally, nginx (which we are using as our front end webserver)...

View Article

python 之 多进程

序. multiprocessing python中的多线程其实并不是真正的多线程,如果想要充分地使用多核CPU的资源,在python中大部分情况需要使用多进程。Python提供了非常好用的多进程包multiprocessing,只需要定义一个函数,Python会完成其他所有事情。借助这个包,可以轻松完成从单进程到 并发执行...

View Article


alias导致virtualenv异常的分析和解法

virtualenv 可以虚拟出一个独立的python环境,在这个环境中安装的第三方库不会对系统中的Python产生影响。作为一个系统洁癖,我的系统中的Python环境只安装最主要的第三方库,我在开发Python项目的时候一般使用virtualenv生成的独立环境来安装项目需要的第三方库。但是如果同时使用了zsh的alias...

View Article

Parsing Text: Numerical Data from Historical Accounts

In a recent article on Data Shop Talk , I introduced an interesting set of analyses on Olympic data. One of the analyses focused on Olympians who had died or gone missing due to war. The data from...

View Article

Image may be NSFW.
Clik here to view.

Erik Marsja: Best Python libraries for Psychology researchers

python is gaining popularity in many field of science. This means that there also are many applications and libraries specifically for use in Psychological research. For instance, there are packages...

View Article
Browsing all 9596 articles
Browse latest View live