话题编程语言 › Python

编程语言:Python

PYTHON自动化操作PPT实践

PPT已经是生活和工作中不可或缺的重要工具,尤其在汇报工作,产品介绍,提案申请等方面,能够帮助用户更加清晰的表达主题。文章重点讲解通过结合PPT模板和大数据分析结果,实现自动化生成PPT文件的过程,极大程度降低人工处理的复杂度,节约成本,提高时效性。

Addressing Python Dependency Confusion at Pinterest

One major issue that put us at risk of dependency confusion was using multiple index endpoints for our Python “pip” config, using the configuration flag — extra-index-url. Pinterest Python artifacts were partially stored on our own custom repository, open-sourced as Pinrepo, and some of our Python packages were stored in JFrog’s Artifactory.

There is a major danger in the usage of the — extra-index-url flag: it will not honor any sort of priority ordering. This has been extensively discussed on Github and Stack Overflow. The short summary is that the volunteer team that manages the pip open-source project does not consider repository index prioritization within the scope of the pip tool. They instead recommend using a single server endpoint that manages priorities on the backend.

Python3 cpython 优化 支持解释器并行

本文介绍了对cpython解释器的并行优化,使其支持真正的多解释器并行执行的解决方案。

CPython 性能将提升 5 倍?faster-python 项目 PEP 659 源码级解读

在 2021 年早些时候,Python 作者 Guido van Rossum 被微软返聘继续进行 CPython 相关工作,他们提出了一个 faster-python 计划,计划在 4 年内将 CPython 的性能提升 5 倍,整个项目被开放在 GitHub 的 faster-cpython Group,通过 Activity 可见该项目的一部分 ideas 已经有了相应的代码实现和验证。

本文将就该项目中的一个重要提案 PEP 659 进行解读和源码分析,并从中学习在 bytecode level 进行虚拟机性能优化的思路和手段,希望能对大家有所启发。

如何用Python+Selenium+Execl实现UI自动化

自动化作为测试人员一项技术能力,对测试人员有着重要的意义。UI自动化能在一定程度上提升测试效率、释放测试资源。市面上有不少的UI自动化工具,但因收费或特性原因可能需要自已通过代码方式来实现,这就导致维护起来相对麻烦。其实UI自动化实现并不难,难在变化过快时维护起来麻烦,特别是迭代很快的互联网项目。

Python+selenium实现UI自动化已极其常见,应用非常广泛,大量技术高手乐在其中。今天我们教大家如何利用这个工具,同时还借用Execl作为数据承载与结果记录,甚至可以根据结果做到报表统计。本文对使用Execl实现用例、步骤及指令定义,Python+selenium实现指令的执行实现过程作一个较细的说明,非高技术文档,只为初欲尝试UI自动化的同学提供一个思路,希望能对其有所帮助。

Sorting Contours using Python and OpenCV

how in the world do we sort contours from left-to-right, top-to-bottom, etc.

How to detect paragraphs in a text document image for a non-consistent text structure in Python OpenCV

This is a classic use for dilate. Whenever you want to connect multiple items together, you can dilate them to join adjacent contours into a single contour.

Python Type Hints 从入门到实践

Python 在 PEP 484 Python Enhancement Proposals,Python 增强建议书 中提出了 Type Hints(类型注解)。进一步强化了 Python 是一门强类型语言的特性,它在 Python3.5 中第一次被引入。使用 Type Hints 可以让我们编写出带有类型的 Python 代码,看起来更加符合强类型语言风格。

Understanding all of Python, through its builtins

Python has a whole lot of builtins that are unknown to most people. This guide aims to introduce you to everything that Python has to offer, through its seemingly obscure builtins.

Finding Dominant Image Colours Using Python

A few weeks ago, I was having a discussion about the possibility of detecting the colour of user uploaded images. The idea was that if a dominant colour was known, it could be used to create matching titles. I decided to give it a go using Python and Pillow.

How-To: OpenCV and Python K-Means Color Clustering

In this blog post I’ll show you how to use OpenCV, Python, and the k-means clustering algorithm to find the most dominant colors in an image.

Python静态类型解析工具简介和实践

本文主要介绍一下Python对静态类型的支持、社区发展的现状、类型检查工具介绍与对比,以及类型解析的实战。

Python Pdb源码解析

经常使用Python的同学一定熟悉pdb模块,它是Python官方标准库提供的交互式代码调试器,和任何一门语言提供的调试能力一样,pdb提供了源代码行级别的设置断点、单步执行等常规调试能力,是Python开发的一个很重要的工具模块。

pdb使用方法见官方文档,本文重点分析官方pdb模块源码,介绍调试功能的实现原理。

Bubble sheet multiple choice scanner and test grader using OMR, Python and OpenCV

Discover how to build a bubble sheet multiple choice scanner and test grader using Optical Mark Recognition (OMR) along with Python, OpenCV, computer vision

rsyslog服务异常导致Python rpc服务启动异常的排查

内附中奖名单

在图像中隐藏数据:用 Python 来实现图像隐写术

图片来自马萨诸塞大学安姆斯特分校博客的文章用 Python 来实现图像隐写术❝如今,世界正在经历一场前所未有

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.124.0. UTC+08:00, 2024-04-27 03:29
浙ICP备14020137号-1 $访客地图$