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

Python 的技巧和方法你了解多少?

学了这些你的python代码将会改善,你的技巧将会提高。 1. 路径操作 比起os模块的path方法,python3标准库的pathlib模块的Path处理起路径更加的容易。 获取当前文件路径 前提导入os和pathlib包。。 os版: print(os.path.dirname(__file__)) print(os.getcwd()) 复制代码 pathlib版:...

View Article


Image may be NSFW.
Clik here to view.

Keras vs TensorFlow vs PyTorch : Comparison of the deep learning Frameworks

Keras, TensorFlow and PyTorch are among the top three frameworks that are preferred by Data Scientists as well as beginners in the field of Deep Learning.This comparison on Keras vs TensorFlow vs...

View Article


Image may be NSFW.
Clik here to view.

SHAP and LIME Python Libraries: Part 1 Great Explainers, with Pros and Cons t...

This blog post provides a brief technical introduction to the SHAP and LIME python libraries, followed by code and output to highlight a few pros and cons of each. Introduction Model explainability is...

View Article

Image may be NSFW.
Clik here to view.

[后端技术栈-Django]-1-使用Docker容器来部署Django之一Docker简介

可能大家会比较奇怪明明讲的是Django为啥要介绍Docker,实不相瞒如果大家不知道Docker对Django的学习并无影响,但是个人之前很早就听说Docker了,借着这个机会也学习下,趁着有这个应用场景也事件下,其实个人对Docker也不是很熟悉,只是现学现卖。将整个过程贯通起来,个人接触新东西一般喜欢围绕着问题展开,遇到不明白的在网上找资料或者找书去了解。这篇博客也采用这种方式,下面就围绕着几...

View Article

随想录(dlib学习)

【 声明:版权所有,欢迎转载,请勿用于商业用途。 联系信箱:feixiaoxing @163.com】...

View Article


Sending Emails With Python

You probably found this tutorial because you want to send emails using python. Perhaps you want to receive email reminders from your code, send a confirmation email to users when they create an...

View Article

Image may be NSFW.
Clik here to view.

Turn your ML model into a web service in under 10 minutes with AWS CodeStar

As a data scientist, developing a model that makes the right predictions feels incredibly rewarding on its own. An hdf5 file on your machine, however, is often not really helpful for your company or...

View Article

Image may be NSFW.
Clik here to view.

Bye Bye 403: Building a Filter Resistant Web Crawler Part II: Building a...

Woohooo! We've got our environment set up and are ready to start building our bot! Seeing as the last post in this series (locatedhere) was mostly informational, let's get right into the code for part...

View Article


Image may be NSFW.
Clik here to view.

Python堆排序之heapq

堆排序 ( . ) 这是崔斯特的第七十八篇原创文章 python中的堆排序 heapq模块实现了Python中的堆排序,并提供了有关方法。让用Python实现排序算法有了简单快捷的方式。 heapq的官方文档和源码: Heap queue algorithm 下面通过举例的方式说明heapq的应用方法 实现堆排序 from heapq import * def...

View Article


PySide2 and PyQt versions.

A short intro about this python module named PySide2 can be found on the Wikipedia webpage . The purpose of this tutorial is to introduce concepts about licenses and develop python programs using...

View Article

Stack Abuse: Sets in Python

Introduction In python, a set is a data structure that stores unordered items. The set items are also unindexed. Like a list, a set allows the addition and removal of elements. However, there are a few...

View Article

Image may be NSFW.
Clik here to view.

爬取中国知网CNKI的遇到的坑与技术总结

【python2.7】爬取知网论文 python实现CNKI知网爬虫 《Python3网络爬虫开发实战》崔庆才 最近要写一个数据分析的项目,需要根据关键词爬取近十年期刊的主要信息,记录一下爬取过程中遇到的问题 分析...

View Article

Python Numpy : Select rows / columns by index from a 2D ndarray | Multi...

In this article we will discuss how to select elements from a 2D ndarray. Elements to select can be a an element only or single/multiple rows & columns or an another sub 2D array. First of all,...

View Article


Image may be NSFW.
Clik here to view.

Create your own Telegram bot with Django on Heroku Part 10 Creating a view ...

In theprevious partofthis series, we created another database model named Message to hold the message-data from our Telegram bot. I also explained the process of defining a SQL schema using a Django...

View Article

Image may be NSFW.
Clik here to view.

Using Twilio to Build a Serverless SMS Raffle in Python

If you’re like me, you drool just a little bit over serverless architectures. When Rackspace and AWS EC2 made cloud-based computing a mainstream reality, that was awesome enough. But you still had to...

View Article


Image may be NSFW.
Clik here to view.

ESP32 Arduino: Brotli decompression

In this tutorial we will check how to decompress a string compressed with the Brotli algorithm , using the ESP32 and the Arduino core. The tests were performed using a DFRobot’s ESP32 module...

View Article

Image may be NSFW.
Clik here to view.

A script for backing up Tumblr posts and likes →

backup_tumblr This is a set of scripts for downloading your posts and likes from Tumblr. The scripts try to download as much as possible, including: Every post and like All the metadata about a post...

View Article


Image may be NSFW.
Clik here to view.

Gender Diversity in the R and Python Communities

Many (if not most) tech communities have far more representation from men than from women (and even fewer from nonbinary folk). This is a shame, because everybody uses software, and these projects...

View Article

Image may be NSFW.
Clik here to view.

Book Memo: “Multiple Criteria Decision Aid”

Methods, Examples and python Implementations Multiple criteria decision aid (MCDA) methods are illustrated in this book through theoretical and computational techniques utilizing Python. Existing...

View Article

Image may be NSFW.
Clik here to view.

Python: Brotli compression

In this tutorial we will check how to compress a string using the Brotli compression algorithm. Introduction In this tutorial we will check how to compress a string using the Brotli compression...

View Article
Browsing all 9596 articles
Browse latest View live