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

Getting a rax image id

If you use the Rackspace API to create servers (e.g. via the ansible module ), you need to know the id of the image you want to use. It’s pretty easy to make the list request using curl, but the json...

View Article


Image may be NSFW.
Clik here to view.

A Simple Neural Network using the CNTK v2.0 Tool

The Microsoft CNTK code library is a very powerful machine learning system. Version 2.0 is a huge change from version 1.0. Version 2.0 is still in Beta mode but I’ve been experimenting with it anyway....

View Article


Reproducible Data Analysis in Jupyter

Jupyter notebooks provide a useful environment for interactive exploration of data. A common question I get, though, is how you can progress from this nonlinear, interactive, trial-and-error style of...

View Article

Image may be NSFW.
Clik here to view.

Tackle Python programming with 30 hours of user-friendly training

There are dozens of notable programming languages out there, but few match the versatility and user-friendliness of python, That makes it one of the best first languages for aspiring programmers to...

View Article

Tips and Tricks for Improved Django Security: published

In this article we shall discuss a point to which we give little importance when we are beginning to programme our application and which, with little details, we can improve significantly. Security!...

View Article


Image may be NSFW.
Clik here to view.

观点 | 获取专业知识的正确姿势

如图:修行 我想阅读技术类的文章应该是程序员日常生活中最普遍的之一,平日里,我也是经常定期阅读一些文章,来扩充自己的知识体系,授人以鱼不如授人以渔,简单介绍一下,这些年里获取专业知识的方式,想来或许也可以帮助一部分朋友,以提高学习之效率。...

View Article

Image may be NSFW.
Clik here to view.

Grid Unlock: Using a simulation in Python to demonstrate a faster way to walk

I'm a data blogger and a statistics student who likes to run experiments on his hometown of New York City. This post uses some straightforward simulators built in python to compare two route-taking...

View Article

Lexicographically smallest array after at-most K consecutive swaps

Given an array arr[], find the lexicographically smallest array that can be obtained after performing at maximum of k consecutive swaps. For example:- Input: arr[] = {7, 6, 9, 2, 1} k = 3Output: arr[]...

View Article


PyBites: How To Build a Simple API with Flask and Unit Test it

REST has gained lot of popularity and is virtually the default architectural style for designing and implementing RESTful web services. Wikipedia states: Representational state transfer (REST) or...

View Article


On updating the automation behind l10n.m.o

Or, how to change everything and nobody sees a difference. Heads up: All I’m writing about here is running on non-web-facing VMs behind VPN. tl;dr:I changed 5 VMs, landed 76 changesets in 7...

View Article

Image may be NSFW.
Clik here to view.

Jedi ―― Python 自动补齐和静态分析工具

Jedi 是一个可以在 IDEs 或者编辑器中使用的 python 代码自动补齐和静态分析工具。它的历史重点是自动完成,但现在也进行静态分析。 Jedi 好用并且快速。 它比 Python 的所有其他静态分析框架更深入地理解 Python。 Jedi 支持两种不同的 goto 函数。 可以搜索相关的名称并列出 Python 文件中的所有名称并推断它们。 Jedi 理解...

View Article

A simple allocation optimization problem in Platypus

For those of you who are not familiar with Project Platypus , its a repository that supports a collectionof python libraries for multi-objective optimization, decision making and data analysis. All...

View Article

Setting Up A Python Dev Environment

12 Feb 2017 - London, England What’s the simplest way to locally run different versions of python and PyPi packages on macOS? After getting back into Python recently I set out to discover this. When...

View Article


Image may be NSFW.
Clik here to view.

Bugs from the Future: Hadamard Coins and Implicit Measurement

Suppose it's fifty years from now, and everyone considers manipulating quantum information to be routine. You're new to the quantum programming profession, still trying stuff out, and you've come up...

View Article

Image may be NSFW.
Clik here to view.

使用Python开发Windows Service服务程序

1.背景 如果你想用python开发windows程序,并让其开机启动等,就必须写成windows的服务程序Windows Service,用Python来做这个事情必须要借助第三方模块pywin32,自己去下载然后安装(注意下载符合自己OS的版本) 2.实例 先上代码 #encoding=utf-8 import win32serviceutil import win32service...

View Article


Developping a Flask Web App with a PostreSQL Database Making all the Possible...

I have lately been attempting to develop a web app linked to a PostgreSQL database and despite all the tutorials available through the Internet, it has not been an easy task. So I have decided to...

View Article

Image may be NSFW.
Clik here to view.

阴阳师:一个非酋的逆向旅程

作者: fatezero 0x00 前言 为了验证这个游戏到底有没有 SSR 0x01 前期工作 直接将 onmyoji netease 1.0.14.apk 解压出来观察各个文件,便可以知道阴阳师是使用 NeoX + python。 其中 lib/armeabi-v7a/libclient.so 和 assets/script.npk 这两个文件, 一个是带着 Python...

View Article


Image may be NSFW.
Clik here to view.

python实现:将文本文件分割成多个小文本文件

python实现:将文本文件分割成多个小文本文件 2小时前来源:cnblogs 前两天有个朋友说,想实现一个文本文件按照固定行数进行分割成多个文本文件,却不知如何实现。如果数据量小手动分割下就好了,如果数据量很大的话手动完成实在太耗费人力了,也不现实。那么就需要借助脚本去实现。既然有朋友想简单的完成这个任务,那么不如记录下来,给需要的朋友提供方便。...

View Article

Image may be NSFW.
Clik here to view.

Leysin Winter Sprint Summary

Today is the last day of our yearly sprint event in Leysin. We had lots of ideas on how to enhance the current state of PyPy, we went skiing and had interesting discussions around virtual machines, the...

View Article

You Physics Teachers Really Ought to Teach Numerical Calculations

I love including numerical calculations in my introductory and advanced physics courses. I find that including coding in the introductory physics course forces students to think in different ways to...

View Article
Browsing all 9596 articles
Browse latest View live