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

How do I use the slice notation in Python?

In this tutorial, we will review the python slice notation, and you will learn how to effectively use it. Slicing is used to retrieve a subset of values. The basic slicing technique is to define the...

View Article


python peewee 乱码

peewee可用class来创建表,增删改查,应该是相对余单表(本人几乎没用过,自以为如此) 想实现sql查询,得到list,比如这样的结果[{‘user_name’:’名字’},{‘user_name’:’名字’}] 但是查询结果是全是数据(元组),且找不到列名,后dir后逐个尝试发现列名可以使用result.description[j][0]获取...

View Article


Bryan Murdock: SystemVerilog and Python

Design patterns in programming are when engineers find themselves writing the same code over and over to solve the same problems. Design patterns for statically typed object oriented languages (C++...

View Article

Learn Python coding and save another 70% with code LEARN70

Want to learn how to code? Then you need to Become a Professional python Programmer , offered to Android Community readers at 78% off the retail price ― then use the coupon code LEARN70 at checkout to...

View Article

BlueData Brings DevOps Agility to Data Science Operations with Spark, R, and...

Santa Clara, Calif.― BlueData , provider of the leading Big-Data-as-a-Service (BDaaS) software platform, today announced the new winter release for the BlueData EPIC software platform . This new...

View Article


Image may be NSFW.
Clik here to view.

Python并发编程线程、进程池

引言...

View Article

Python之路【第二十三章】:Django Model操作(二)

Model操作 1、操作汇总: # 增 # # models.Tb1.objects.create(c1='xx', c2='oo') 增加一条数据,可以接受字典类型数据 **kwargs # obj = models.Tb1(c1='xx', c2='oo') # obj.save() # 查 # # models.Tb1.objects.get(id=123) #...

View Article

Django 数据库操作详解

你创建完数据模型,Django会自动提供给你数据库抽象的API,可以创建,获取,修改,删除对象.本篇文档讲解如何使用API,包括外键相关查询以及多对多模式的操作等 我们参考下面模型,一个weblog: class Blog(models.Model): name = models.CharField(max_length=100) tagline = models.TextField() def...

View Article


Python环境搭建之OpenCV

一、openCV介绍 Open Source Computer Vision Library.OpenCV于1999年由Intel建立,如今由Willow Garage提供支持。OpenCV是一个基于BSD许可(开源)发行的跨平台计算机视觉库,可以运行在linux、windows、MacOS操作系统上。它轻量级而且高效――由一系列 C...

View Article


五大数据分析软件的比较Excel、SAS、R、SPSS、python

五大数据分析软件的比较Excel、SAS、R、SPSS、python 一点号Excel自学成才5小时前 SAS、R、SPSS、python、excel五大软件的比较优势分析 一、SAS软件 SAS是全球最大的软件公司之一,是由美国NORTH CAROLINA州立大学1966年开发的统计分析软件。SAS把数据存取,管理,分析和展现有机地融为一体。 主要优点如下: 1)功能强大,统计方法齐,全,新...

View Article

Python第十二天

python第十二天 目录 Pycharm使用技巧(转载) Python第一天 安装 shell 文件 Python第二天 变量 运算符与表达式 input()与raw_input()区别 字符编码 Python第三天 序列 数据类型 数值 字符串 列表 元组 字典 Python第四天 流程控制 ifelse条件判断 forwhile循环 Python第五天 文件访问 for循环访问文件...

View Article

Image may be NSFW.
Clik here to view.

0017 编程入门python之字符串操作和读写文件

0017 编程入门python之字符串操作和读写文件 一点号零基础学编程5小时前 php?url=0FbcrTAA5t" alt="0017 编程入门python之字符串操作和读写文件" /> 上节课作业 1.写一个死循环程序,循环内部每次sleep 3秒,运行该程序,然后强制退出程序,杀死该进程 程序如下: 运行程序之后,会看到每过一秒数字增加1,然后新开一个LX终端窗口,输入sudo ps...

View Article

Image may be NSFW.
Clik here to view.

Build a blog with Django: Add a custom management command to seed posts

Let's make it really easy to generate seed data for posts by writing a custom management command to do the job for us. Previously, we had to go into the shell and do the following: >>> from...

View Article


Image may be NSFW.
Clik here to view.

python装饰器详解

python之装饰器详解 一、装饰器定义 定义一个函数,可以接受一个函数作为参数,对该函数进行一些包装,不改变函数的本身。 二、装饰器四部曲(分解) 1、函数可赋值给变量。若赋值给变量的是调用后的函数,变量的值就是return的返回值。 切记:函数赋值给变量,只看return的值。分清楚函数是处于调用状态还是未被调用状态。若函数没有写return,默认return为None。 例如:...

View Article

Image may be NSFW.
Clik here to view.

Introduction to strings in python

In python ,the strings should be created by simply enclosing the characters in quotes. Python does not support the character types. These are treated as length-one strings, and are also considered as...

View Article


Image may be NSFW.
Clik here to view.

Kupfer Quick Launcher Ported To Python 3 And GTK 3, Sees New Release After 4...

After around 4 and a half years of inactivity, a new Kupfer (quick launcher) version was released 3 days ago, followed by 3 more releases since then. The application has a new developer who ported the...

View Article

WeRoBot 1.1.0,Python 的微信公众号开发框架

WeRoBot 1.1.0 发布了。有以下更新: 为 werobot.robot.BaseRoBot 增加 client property 允许在初始化 werobot.robot.BaseRoBot 时传入 Config 。注意如果传入了 config , BaseRoBot 会忽略除 config 与 logger 外的其他所有的参数。 deprecate...

View Article


Image may be NSFW.
Clik here to view.

2017年高薪的编程语言排行榜,你的语言上榜没?

2017年高薪的编程语言排行榜,你的语言上榜没? 7小时前来源:OPEN资讯 选择正确的编程语言进行学习无疑成为左右个人发展投资成功与否的关键。在今天的编程语言推荐榜中,我们参考了大量可靠且信誉卓著的消息来源。其中采用的指标包括语言普及度、语言相关网页数量与提及频率、招聘岗位与指导材料数量乃至相关开源代码库丰富性等等。 php?url=0FbTliUqtJ"...

View Article

Python系列之Collections内置模块(1)

collections 是 python 的内置模块,源码位于Lib/collections/__init__.py ,该模块提供了通用的数据容器。 deque 容器对象 通过 from collections import deque 引入,创建 deque 容器对象时,可通过设置参数为Iterable 对象(如 tuple,list,str)或 maxlen=x(int类型) or None...

View Article

MongoDB and PySpark 2.1.0

The common problem with using the latest release of any framework is that there are no or very few adopters, docs are not updated or point to older versions. We encountered a similar problem while...

View Article
Browsing all 9596 articles
Browse latest View live