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

Image may be NSFW.
Clik here to view.

MicroPython:STM32 上 的 Python 开发

虽然python在国外是一门非常火的语言,在黑客界更是赫赫有名,然而中国的大学却极少开设 Python 课程,故而国内 Python 程序员多属自学。而一个没有MCU编程经验的初学者,要想让芯片跑起来,出现问题有时候要对照一两千页的英文文档来排查,这也绝非一天两天可以打下坚实的基础。 Python 是一门适合初学者的语言...

View Article


os模块汇总

os.getcwd() 函数得到当前python脚本工作的目录路径。 os.listdir('path') 返回指定目录下的所有文件和目录名。 os.listdir(os.getcwd()) ['jquery-1.12.4.min.js', 'phantomjs-2.1.1-linux-x86_64', 'scrapy-redis', 'area_facility.sql', 'Shen Ru Li...

View Article


pynd - search Python code

Over the last week or two I had a go at writing this and called it pynd ( py thon fi nd). As a very young project it is likely to change and evolve but I would love some feedback. Is this something...

View Article

Image may be NSFW.
Clik here to view.

基于MongoDB的python日志功能

基于MongoDB的python日志功能 我几个月前在《Python 日志功能详解》中介绍了Python log模块的基本使用方法,但按照那篇文章的内容组织,还有一些东西不好放进去展开,原本打算单独开一篇文章把剩下的事情再讲明白的,结果被各种事情耽误,一直拖到现在,只能按照现在的思路继续展开了。本文就讲一下Python log 模块与mongodb的结合。...

View Article

Image may be NSFW.
Clik here to view.

python爬取百度新闻:分析共享单车火爆背后有哪些规则?

python爬取百度新闻:分析共享单车火爆背后有哪些规则? 一点号复旦大数据2天前 从12月份起,“共享单车”作为新生事物开始大量进入人们的视野,并且越来越多的上班族愿意接受、尝试。 本文将教与大家利用python爬虫抓取新闻页面,从媒体反映角度去了解,“共享单车”为何有井喷式发展,前景又是如何? php?url=0FJybRlwcS"...

View Article


Image may be NSFW.
Clik here to view.

专访黄东旭:从Python到Go再到Rust的二十载编程长路

专访黄东旭:从python到Go再到Rust的二十载编程长路 3小时前来源:CSDN CSDN:首先能否请您谈谈是什么时候开始编程的?和大家分享一下这一循序渐进的过程吧。...

View Article

Image may be NSFW.
Clik here to view.

Christoph Zwerschke: Python and the 36 Towers

This year my brother’s family sent us a puzzle in their Christmas package, mentioning that they already solved it and we should give it a try over the Christmas holidays, too. The puzzle is called “36...

View Article

Image may be NSFW.
Clik here to view.

Codementor: Building Data Products with Python: Adding User Management to a...

This is the second tutorial on our series on how to build data products with python. Remember that as a leitmotif we want to build a web-based wine reviews and recommendations website using Python...

View Article


Image may be NSFW.
Clik here to view.

SKiDL: Script Your Circuits in Python

SKiDL is very, very cool. It’s a bit of python code that outputs a circuit netlist for KiCAD. Why is this cool? If you design a PCB in KiCAD, you go through three steps: draw the schematic, assign...

View Article


Debugging memory leaks in Python

Recently I noticed a python service on our embedded device was leaking memory. It was a long running service with a number of library dependencies in Python and C and contained thousands of lines of...

View Article

Image may be NSFW.
Clik here to view.

Gluster Geo-replication Dashboard Experiment

Gluster Events APIs are available with Gluster 3.9 release. This project is created as an experiment to showcase the capabilities of Gluster Events APIs , Dashboard shows realtime Geo-replication...

View Article

Image may be NSFW.
Clik here to view.

Automating Django Deployments with Fabric and Ansible

This post was originally published here In the last post, we covered all the steps required to successfully develop and deploy a Django app on a single server. In this tutorial we will automate the...

View Article

D'oh: Coverage.py 4.3.1

Yesterday I released five months' of fixes as Coverage.py 4.3, and today I am releasing Coverage.py 4.3.1 . This is not because releasing is fun, but because releasing is error-prone. Two bad problems...

View Article


Image may be NSFW.
Clik here to view.

Pointwise Adds Script Language Support for CFD Mesh Generation

Today Pointwise announced that the latest release of their CFD mesh generation software has been extended such that its Tcl-based Glyph scripting language can be called from any scripting language...

View Article

Image may be NSFW.
Clik here to view.

Python09作业思路及源码:高级FTP服务器开发(仅供参考)

高级FTP服务器开发 一,作业要求 高级FTP服务器开发 用户加密认证(完成) 多用户同时登陆(完成) 每个用户有不同家目录且只能访问自己的家目录(完成) 对用户进行磁盘配额,不同用户配额可不同(完成) 用户登录server后,可切换目录(完成) 查看当前目录下文件(完成) 上传下载文件保持文件一致性(完成) 传输过程中实现进度条(完成) 可以创建或删除目录及文件(完成) 支持断点续传(未做)...

View Article


The Iterator Protocol: How for Loops Work in Python

We’re interviewing for a job and our interviewer has asked us to remove all for loops from a block of code. They then mentioned something about iterators and cackled maniacally while rapping their...

View Article

Django Weblog: Django Fellowship Program: 2016 retrospective

2016 concludes my second year working full-time to support the development of Django. Here are some highlights from my weekly summaries published on the django-developers mailing list . On the...

View Article


Armin Ronacher: Be Careful with Python's New-Style String Format

written on Thursday, December 29, 2016 This should have been obvious to me for a longer time, but until earlier today I did not really realize the severity of the issues caused by str.format on...

View Article

Virtualenv简单的使用

vitualenv可以用于在一台机器上创建多个相互隔离的python虚拟运行环境。这些环境之间相互独立,不会对彼此产生影响。 虚拟环境能够: 可以在没有授权的情况下安装套件 不同的应用可以使用不同的套件版本 虚拟环境可以防止系统出现包混乱和版本冲突等问题。为每个应用程序创建一个虚拟环境可以确保这个应用程序只访问到自己的包。 安装vitualenv : $ sudo apt-get install...

View Article

Image may be NSFW.
Clik here to view.

Python Data: Book Review Machine Learning With Random Forests And Decision Tr...

I just finished reading Machine Learning With Random Forests And Decision Trees: A Mostly Intuitive Guide, But Also Some python (amazon affiliate link). The short review This is a great introductory...

View Article
Browsing all 9596 articles
Browse latest View live