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

SICP Python 描述 2.6 实现类和对象

2.6 实现类和对象 来源: 2.6 Implementing Classes and Objects 译者:飞龙 协议: CC BY-NC-SA 4.0...

View Article


zodb.py3migrate: Migrate an existing ZODB Data.fs to be used with Python 3

At Berlin Strategic sprint 2016 wedeveloped a tool to analyze a ZODB Filestorage to findpython 2 string objects. Ifthey are in an encoding besides ASCII this ispreventing using this Filestorage with...

View Article


Image may be NSFW.
Clik here to view.

如何用Python进行线性回归以及误差分析

如何用python进行线性回归以及误差分析 一点号数据玩家昨天 限时干货下载: 回复【2】免费获取【超全数据分析资料免费下载(包含SQL,R语言,SPSS,SAS,python,数据挖掘)!】 数据挖掘中的预测问题通常分为2类:回归与分类。 简单的说回归就是预测数值,而分类是给数据打上标签归类。 本文讲述如何用Python进行基本的数据拟合,以及如何对拟合结果的误差进行分析。...

View Article

Image may be NSFW.
Clik here to view.

HIPS/autograd: Efficiently computes derivatives of numpy code

Autograd Autograd can automatically differentiate native python and Numpy code. It can handle a large subset of Python's features, including loops, ifs, recursion and closures, and it can even take...

View Article

Image may be NSFW.
Clik here to view.

Markov Chain Monte Carlo Sampling

This is the third part in a short series of blog posts about quantum Monte Carlo (QMC). The series is derived from an introductory lecture I gave on the subject at the University of Guelph. Part 1...

View Article


Image may be NSFW.
Clik here to view.

自动化系列六之Python面向对象基础

python自动化 时间:2016.08.27 1.面向\ 象基础概述 面向过程 : 根据业务逻辑从上到下垒代码(如果程序修改,对于依赖的过程都需要进行修改。) 函数式 : 将某功能代码封装到函数中,如后便无需重复编写,仅需要调用函数即可 面向对象 : 世界万物,皆可分类。 世界万物,皆为对象。 只要是对象,就肯定属于某种品类。 只要是对象,就肯定有属性(名称或功能)...

View Article

Image may be NSFW.
Clik here to view.

Python开发程序:选课系统

本节作业: 选课系统 角色:学校、学员、课程、讲师 要求: 1. 创建北京、上海 2 所学校 2. 创建linux , python , go 3个课程 , linux\py 在北京开, go 在上海开 3. 课程包含,周期,价格,通过学校创建课程 4. 通过学校创建班级, 班级关联课程、讲师 5. 创建学员时,选择学校,关联班级 5. 创建讲师角色时要关联学校, 6. 提供两个角色接口 7....

View Article

Image may be NSFW.
Clik here to view.

Trading with Interactive Brokers using Python

Webinar Date and Time Wednesday, September 28, 2016 7:30 PM IST | 7:00 AM PT Many quant traders and researchers prefer python algorithmic trading these days over other programming languages as Python...

View Article


Python 性能调优

python 性能调优 2小时前来源:开发者头条 性能分析软件有两类方法论:基于事件的性能分析(event-based profiling)和统计式性能分析(statistical profiling)。 基于事件的性能分析器(event-based profiler,也称为轨迹性能分析器,tracing...

View Article


New Term, New Tool - repl.it

We're now a week in to my first class at Hunter. It's a little early for me to really compare and contrast the high school to college experience but I thought I'd share some thoughts on a tool that...

View Article

Image may be NSFW.
Clik here to view.

使用Python训练回归模型并进行预测

回归分析是一种常见的统计方法,用于确定不同变量间的相互关系。在Excel中可以通过数据分析菜单中的回归功能快速完成。本篇文章将介绍在python中使用机器学习库sklearn建立简单回归模型的过程。 准备工作...

View Article

python实现的视频下载工具you-get,支持多个国内外主流视频平台

RT,you-get 是一个视频离线下载工具, https://github.com/soimort/you-get 另一个同类工具 youtube-dl 也是python 实现,虽然名为 youtube-dl 但是从文档上看,支持很多网站 https://github.com/rg3/youtube-dl 两个都是命令行工具 如果装有python3 ,可以使用pip 安装。...

View Article

Operator overloading in python: Python Arithmetic on Complex numbers

Write a sample program to perform Addition(+), Subtraction(-), Multiplication(*),Division(/) between complex numbers. And also perform Mod (underRoot(Square(real)+square(imaginary))) of complex...

View Article


Image may be NSFW.
Clik here to view.

WTForm的URLXSS谈开源组件的安全性

开源组件是我们大家平时开发的时候必不可少的工具,所谓『不要重复造轮子』的原因也是因为,大量封装好的组件我们在开发中可以直接调用,减少了重复开发的工作量。...

View Article

Vector Arithmetic : Dot product and Cross product

Write a sample program to perform Addition(+), Subtraction(-), Dot product,Cross product between two vectors. Also find angle between two vectors. from math import * class vector: def __init__(self, x,...

View Article


Image may be NSFW.
Clik here to view.

使用Python训练KNN模型并进行分类

K临近分类算法是数据挖掘中较为简单的一种分类方法,通过计算不同数据点间的距离对数据进行分类,并对新的数据进行分类预测。我们在之前的文章《K邻近(KNN)分类和预测算法的原理及实现》和《协同过滤推荐算法的原理及实现》两篇文章中都详细介绍过。本篇文章将介绍在python中使用机器学习库sklearn建立K临近模型(k-NearestNeighbor)的过程并使用模型对数据进行预测。 准备工作...

View Article

Talk Python to Me: #74 Past, Present, and Future of IronPython

Have you heard of Ironpython and Jython? These two alternate implementations of Python were created by Jim hugunin. They run on top of the .NET and JVM runtimes. On this episode going to look at the...

View Article


Python 连接数据库

python 数据库接口支持非常多的数据库,你可以选择适合你项目的数据库: GadFly mSQL mysql PostgreSQL Microsoft SQL Server 2000 Informix Interbase Oracle Sybase 你可以访问 Python数据库接口及API 查看详细的支持数据库列表。 不同的数据库你需要下载不同的DB...

View Article

Image may be NSFW.
Clik here to view.

Python教程:连接数据库,对数据进行增删改查操作

python教程:连接数据库,对数据进行增删改查操作 一点号CSharp自学2天前 各位志同道合的同仁可以点击上方关注↑↑↑↑↑↑ 本教程致力于程序员快速掌握Python语言编程。 本文章内容是基于上次课程Python教程:操作数据库,mysql的安装详解和python基础知识之上进行的。如想学习python基础请移步:Python开发实战系列教程-链接汇总,持续更新。 1.mysql的使用...

View Article

Image may be NSFW.
Clik here to view.

A Guide to Using Git in PyCharm Part 1

This post is part 1 of a multi-part series intended to describe how to use PyCharm’s integrated Git (version control) features. PyCharm makes it easy to link a Github account directly to the PyCharm...

View Article
Browsing all 9596 articles
Browse latest View live