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

为何人工智能(AI)首选Python?如何转行Pyth

一、为何人工智能(AI)首选python? 读完这篇文章你就知道了。我们看谷歌的TensorFlow基本上所有的代码都是C++和Python,其他语言一般只有几千行 。如果讲运行速度的部分,用C++,如果讲开发效率,用Python,谁会用Java这种高不成低不就的语言搞人工智能呢?...

View Article


python 包管理工具之pip简介

安装python包 pip install $package_name 查看已安装的python包 pip list 显示指定包信息 pip show $package_name 查看指定包包含的所有文件的列表(以及包信息) pip show -f $package_name 卸载包 pip uninstall $package_name 搜索包 pip search $package_name...

View Article


Image may be NSFW.
Clik here to view.

Finding bad colored pixels between boundaries

In an image I have a large number of cells of various colors separated by black boundaries. However, the boundaries were not drawn perfectly, and now some cells have a handful of pixels of the wrong...

View Article

Image may be NSFW.
Clik here to view.

傻瓜式学Python3――列表

前言: 好久不见,突然发觉好久没写博客了,最近迷上了 python 无法自拔,了解了一下, Python 简单易学,尤其是接触过 java 的人,入门 Python 更是门槛极低,本着学习记录的原则,边学习边记录,有利于梳理学习的成果,也有利于后期的复盘,所以今天开始 Python 学习之旅的第一篇博客,纯粹只是记录。...

View Article

I wrote a free book about TDD and clean architecture in Python

Hey HN, I just published on Leanpub a free book, "Clean Architectures in python". It's a humble attempt to organise and expand some posts I published on my blog in the last years. You can find it here:...

View Article


Image may be NSFW.
Clik here to view.

基于TextRank算法的文本摘要(附Python代码)

TextRank 算法是一种用于文本的基于图的排序算法,通过把文本分割成若干组成单元(句子),构建节点连接图,用句子之间的相似度作为边的权重,通过循环迭代计算句子的TextRank值,最后抽取排名高的句子组合成文本摘要。本文介绍了 抽取型文本摘要算法 TextRank,并使用python实现TextRank算法在多篇单领域文本数据中抽取句子组成摘要的应用。 介绍...

View Article

Image may be NSFW.
Clik here to view.

Microsoft Announces a Public Preview of Python Support for Azure Functions

At the recent Connect() event , Microsoft announced the public preview of python support in Azure Functions. Developers can build functions using Python 3.6, based upon the open-source Functions 2.0...

View Article

Image may be NSFW.
Clik here to view.

技术趋势:2019,人工智能开发的5种最佳编程语言

导引 AI(人工智能)为应用程序开发人员打开了一个充满可能性的世界。 通过利用机器学习或深度学习,您可以生成更好的用户画像、个性特征和适当推荐,或者包含更智能的搜索、语音接口或智能辅助,或者以其他方式改进您的应用程序。 您甚至可以构建能看、会听并响应的应用程序。 你应该学习哪种编程语言来探究AI的深度? 当然,您需要一种具有许多良好机器学习和深度学习库的语言。...

View Article


Programiz: Python time Module

python has a module named time to handle time-related tasks. To use functions defined in the module, we need to import the module first. Here's how: import time Here are commonly used time-related...

View Article


Simple file server to serve current directory

I'm looking for a dead simple bin that I can launch up in the shell and have it serve the current directory (preferably not ..), with maybe a -p for specifying port. As it should be a development...

View Article

Image may be NSFW.
Clik here to view.

The Probability that One Normal Random Variable is Greater than Another

Suppose you have a Normal (Gaussian) random variable A with mean = 2150 and standard deviation = 70. And you have a second random variable B with mean = 2000 and std = 70. What is the probability that...

View Article

Image may be NSFW.
Clik here to view.

Data Structures & Algorithms in Python

Time Complexity \(O(1)\) - Swap two numbers. \(O(logN)\) - Search in a sorted array with binary search. \(O(N)\) - Search for a maximum element in an unsorted array. \(O(N*logN)\) - Merge Sort, Quick...

View Article

How do I access array elements in a Django model?

I am getting an array arr passed to my Django template. I want to access individual elements of the array in the array e.g. arr[0] , arr[1] etc instead of looping through the whole array. Is there a...

View Article


Image may be NSFW.
Clik here to view.

MLflow v0.8.1 Features Faster Experiment UI and Enhanced Python Model

MLflow v0.8.1 was released this week. It introduces several UI enhancements, including faster load times for thousands of runs and improved responsiveness when navigating runs with many metrics and...

View Article

Image may be NSFW.
Clik here to view.

What is the fastest axis of an array?

One of the participants in our geocomputing course asked us a tricky question earlier this year. She was a C++ and Java programmer ― we often teach experienced programmers who want to learn about...

View Article


Faster In-Memory Python Module Importing

I recently blogged about distributing standalone python applications. In that post, I announced PyOxidizer - a tool which leverages Rust to produce standalone executables embedding Python. One of the...

View Article

Python: requests.exceptions.ConnectionErro ...

This is the script: import requests import json import urlparse from requests.adapters import HTTPAdapter s = requests.Session() s.mount('http://', HTTPAdapter(max_retries=1)) with open('proxies.txt')...

View Article


Image may be NSFW.
Clik here to view.

超有趣!手把手教你用Python实现实时“人脸检测”

【51CTO.com原创稿件】Instagram 的联合创始人兼首席技术官 Mike Kreiger 说:“计算机视觉和机器学习其实已开始流行起来,但是对于大多数人来说,计算机看了图像后看到了什么这方面还是比较模糊。” 近年来,计算机视觉这个神奇的领域已渐成气候。该技术在世界各地已有广泛的应用,而我们才开了个头!...

View Article

Software activities at AAS 233 in Seattle, Jan 2019

It’s that time of year again when software folks ― users and authors alike ― dream of all the software activities at the winter AAS meeting . So here is the ASCL’s (abbreviated*) annual round-up to...

View Article

Image may be NSFW.
Clik here to view.

微软宣布 Azure Function 支持 Python

在最近举行的 Connect() 大会上,微软宣布 Azure Functions 对 python 的支持。开发人员可以使用 Python 3.6 基于开源的 Functional Runtime 2.0 构建 Function,并将它们发布到 Consumption Plan。 10 月上旬,InfoQ 报道了 Azure Function Runtime 2.0 的普遍可用性,从那时开始,对...

View Article
Browsing all 9596 articles
Browse latest View live