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

Image may be NSFW.
Clik here to view.

What I Learned Implementing a Classifier from Scratch in Python

This post is part of the Learning Machine Learning series. It’s based on Chapter 1 and 2 of python Machine Learning . Machine learning can be intimidating for a newcomer. The concept of a machine...

View Article


Code Your First Microservice in an Hour

By Itamar Turner-Trauring: See Microservices.com Practitioner Summit for upcoming event information. You may have heard about microservices: the trendy new architecture that lets you ship features...

View Article


Image may be NSFW.
Clik here to view.

x lines of Python: machine learning

You might have noticed that our web address has changed to agilescientific.com , reflecting our continuing journey as a company. Links and emails to agilegeoscience.com will redirect for the...

View Article

if __name__== "__main__" 的意思(作用)python代码复用

转自: 大步's Blog http://www.dabu.info/if-__-name__-__main__-mean-function-python-code-reuse.html 有人在学习python脚本时会发现有的脚本下面有几行代码; if __name__== "__main__": main() 不明白其中的意思,其实这就是方便我们 代码复用...

View Article

Image may be NSFW.
Clik here to view.

PyTennessee: PyTN Profiles:Anna Ossowski and No Starch Press

Speaker Profile: Anna Ossowski ( @ossanna16 ) Anna is currently looking for a new people-focused role in tech. She is a former director of the python Software Foundation, PyCon Open Spaces-Chair,...

View Article


Image may be NSFW.
Clik here to view.

DataCamp: Scikit-Learn Cheat Sheet: Python Machine Learning

Most of you who are learning data science with python willhave definitely heard already about scikit-learn , the open source Python library that implements a wide variety of machine learning,...

View Article

alot - commandline MUA based on notmuch and urwid

Alot is an experimental terminal MUA based on notmuch mail . It is written in python using the urwid toolkit. Have a look at the user manual for installation notes, advanced usage, customization,...

View Article

Image may be NSFW.
Clik here to view.

Getting Started with Django REST Framework (DRF) and AngularJS (Part 5)

This is the fifth installment in a multi-part series geared toward getting started with Django Rest Framework (DRF) and AngularJS. The goal of this series is to create an extensive, RESTful web...

View Article


Grumpy: Go running Python!

Google runs millions of lines of python code. The front-end server that drives youtube.com and YouTube’s APIs is primarily written in Python, and it serves millions of requests per second! YouTube’s...

View Article


Django 1.10.5 发布,Python Web 框架

Django 1.10.5 发布了。Django 是 python 编程语言驱动的一个开源模型-视图-控制器(MVC)风格的 Web 应用程序框架。使用 Django,我们在几分钟之内就可以创建高品质、易维护、数据库驱动的应用程序。 更新内容: Fixed a crash in the debug view if request.user can’t be retrieved, such as if...

View Article

Image may be NSFW.
Clik here to view.

字典对象的 Pythonic 用法

字典对象在python中作为最常用的数据结构之一,和数字、字符串、列表、元组并列为5大基本数据结构,字典中的元素通过键来存取,而非像列表一样通过偏移存取。笔者总结了字典的一些常用Pyhonic用法,这是字典的Pythonic用法的上篇 0. 使用 in/not in 检查 key 是否存在于字典 判断某个 key...

View Article

Image may be NSFW.
Clik here to view.

谷歌TensorFlow成最受欢迎Python项目

TensorFlow众所周知,最初是2015年11月由谷歌开源的人工智能系统,属于谷歌大脑第二代机器学习系统。TensorFlow是一个开源软件库,用于各种感知和语言理解人物的机器学习,在谷歌的语音识别、Gmail、谷歌相册和搜索等多款产品中都有应用。...

View Article

Google's Grumpy code makes Python Go

Google on Wednesday introduced an open-source project called Grumpy to translate python code into Go programs. The company's front-end server for YouTube and its YouTube API are mainly written in...

View Article


Image may be NSFW.
Clik here to view.

Python解惑:整数比较

在 python 中一切都是对象,毫无例外整数也是对象,对象之间比较是否相等可以用 == ,也可以用 is 。 == 和 is 操作的区别是: is 比较的是两个对象的id值是否相等,也就是比较俩对象是否为同一个实例对象,是否指向同一个内存地址。 == 比较的是两个对象的内容是否相等,默认会调用对象的 __eq__() 方法。 清楚 is 和 ==...

View Article

Image may be NSFW.
Clik here to view.

Vasudev Ram: Give your Python function a {web,CLI} hug!

By Vasudev Ram I came across this interesting python framework called hug recently: www.hug.rest Hug is interesting because it allows you to create a function in Python and then expose it via both the...

View Article


Image may be NSFW.
Clik here to view.

Python解惑:True与False

python 中常用的数据类型 bool (布尔)类型的实例对象(值)就两个,真和假,分别用 True 和 False 表示。在if 条件判断和while 语句中经常用到,不过在Python2.x 中,True 和False 却有着奇怪的用法,就是真假可以相互被替换,先看下面代码: >>> True True >>> False False...

View Article

Dusty Phillips: Looking for a new role

I haven’t given this blog much ― ok, I’ll be honest: ANY ― attention lately. I’m hoping that will change in the new year, with a new job that gives me both more time and more ideas for interesting...

View Article


MicroPython关于串口的使用

原创版权归山东萝卜科技有限公司所有,转载必须以链接形式注明作者和原始出处。 基本用法 from pyb import UART u1 = UART(1, 9600) u1.writechar(65) u1.write('123') u1.readchar() u1.readall() u1.readline() u1.read(10) u1.readinto(buf) u1.any() 串口方法...

View Article

Grumpy:Google开源神器 Go上运行Python

Grumpy:Google开源神器 Go上运行python 3小时前来源:CSDN Grumpy是一个Python to Go的源码源代码翻译编译器和运行时,旨在取代CPython 2.7。...

View Article

Image may be NSFW.
Clik here to view.

[Python]因果检验工具

安装过程 如果你已经安装了 pip ,那么你只需运行以下代码即可 因果推理 causality.inference 模块中将会包含多种推断变量之间因果关系的算法。但是到2016年1月23日为止,我只实现了 Pearl(2000) 提出的 IC* 算法。 此时,我们已将变量的关系图储存到 graph...

View Article
Browsing all 9596 articles
Browse latest View live