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

Authenticate to Google Drive and download the spreadsheet with Python urllib2...

I would like to download a document I have in my Google Drive authenticating to Google (I only want certain users to be able to access it and do not want to publish it on the web). I have tried using...

View Article


Image may be NSFW.
Clik here to view.

4 Machine Learning Techniques with Python

1. Objective In our last session, we discussed Train and Test Set in python ML . Here,In this Machine Learning Techniques tutorial, we will see 4 major Machine Learning Techniques with Python:...

View Article


Pleasant programming playground paves popular Python path

To help aspiring programmers start writing code, researchers from the Georgia Institute of Technology in the US have developed a free web-based platform called Code Shrew . The site built with Django...

View Article

Image may be NSFW.
Clik here to view.

在Python中使用gRPC

使用Protocol Buffers的跨平台RPC系统。 安装 使用 pip pip install grpcio pip install grpcio-tools googleapis-common-protos gRPC由两个部分构成,grpcio 和 gRPC 工具, 后者是编译 protocol buffer 以及提供生成代码的插件。 使用 编写protocol buffer 使用 gRPC...

View Article

Image may be NSFW.
Clik here to view.

Naive Bayes Classifier: Learning Naive Bayes with Python

In a world full of Machine Learning and Artificial Intelligence, surrounding almost everything around us, Classification and Prediction is one the most important aspects of Machine Learning andNaive...

View Article


Image may be NSFW.
Clik here to view.

How tracking apps analyse your GPS data: a hands-on tutorial in Python

Sport tracking applications and the social networks accompanying them are all over the place nowadays. Everyone wants to make the biggest or the fastest effort on apps like Nike+ Run or Strava . But...

View Article

PyCharm 2018.1.4 RC

We’re happy to announce that the release candidate for a new version of PyCharm is now available: get it now from our confluence page . Improved in this Version Various issues related to installing...

View Article

Image may be NSFW.
Clik here to view.

Codementor: Python Tuples and TupleMethods

Tuples are an ordered sequences of items, just like lists. The main difference between tuples and lists is that tuples cannot be changed (immutable) unlike lists which can (mutable). Initialize Tuple...

View Article


Use the combined input combination when migrating to pygobject,...

I develop in python with glade and pygtk since 3 months, but even before I had time to get used to it, it was already obsolete. Using Archlinux, my system is constantly up to date, so I am forced to...

View Article


Image may be NSFW.
Clik here to view.

Codementor: Setup Microservices Architecture in Python with ZeroMQ &...

Microservices are an architectural style in which multiple, independent processes communicate with each other. These processes are designed to be highly scalable, are de-coupled and perform one small...

View Article

Talk Python to Me: #173 Coming into Python from another Industry (part 1)

Not everyone comes to software development and python through 4-year computer science programs at universities. This episode highlights one alternative journey into Python. Over the course of two...

View Article

Python Bytes: #90 A Django Async Roadmap

Sponsored by Digital Ocean: pythonbytes.fm/digitalocean Brian #1: Reproducible Data Analysis in Jupyter Amazing series of videos by Jake Vanderplas Exploring a data set through visualization in a...

View Article

Flask 装饰器顺序问题

上周 RealWorld CTF 2018 web 题 bookhub 有个未授权访问的漏洞,比较有意思,赛后看了一下公开的 WriteUp,大家也都没写清楚,所以就有了这篇博文。 前言 这个题是用 flask 框架写的,在 www/bookhub/views/user.py 中, refresh_session 方法存在未授权访问漏洞,代码是这样写的: @login_required...

View Article


7 Python Libraries for More Maintainable Code

A great way to protect the future maintainability of a project is to use external libraries to check your code health for you. These are a few of our favorite libraries for linting code (checking for...

View Article

Python Absolute Value abs()

python abs() function returns the absolute value of the number. It’s one of the built-in functions in python builtinsmodule. Table of Contents 1 Python Absolute Value using abs() 2 Python abs() with...

View Article


Python Speech Recognition Using Google Speech API

In this tutorial you will learn about python speech recognition. There are plenty of options available for this. But Google Speech API is best among all of them. So in this article we are going to see...

View Article

Removing control / space characters from the cache key in python

I have to remove control/space characters from my cache key. It is giving following error: MemcachedKeyCharacterError: Control/space characters not allowed (key=' :1...

View Article


Django filtering dynamically with q objects

I'm trying to query a database based on user input tags. The number of tags can be from 0-5, so I need to create the query dynamically. So I have a tag list, tag_list, and I want to query the database:...

View Article

[$] Using AI on patents

Post Syndicated fromjake original https://lwn.net/Articles/761931/rss Software patents account for more of all utility patents granted in the US over the past few years. Clearly, many companies see...

View Article

Convert the DataFrame i string complex to j python

I have this type of DataFrame I wish to utilize. But because the data i imported is using the i letter for the imaginary part of the complex number, python doesn't allow me to convert it as a float....

View Article
Browsing all 9596 articles
Browse latest View live