ProgrammingError
I am getting this Exception in my browser, I have seen upto 20 posts related to this error but I could not have found any solution.I am using Postgre database (pgAdmin 4). I am new to Django, Please...
View ArticleVasudev Ram: The Zen of Python is well sed :)
- By Vasudev Ram - Online python training / SQL training / linux training $ python -c "import this" | sed -n "4,4p;15,16p" Explicit is better than implicit. There should be one-- and preferably only...
View ArticleLost in XML and Python
Hi I have started learning python and want to use it to do something to a XML file with. I have been looking for information on the best course to follow but frankly I got a little lost. There are so...
View ArticleJupyter 扩展
jupyter-nbextensions-configurator jupyter-contrib-nbextensions 都叫 nbextensions,哪个更 nb? 哪个是官方的? 扩展 Pypi Github jupyter-nbextensions-configurator pypi 提供图形UI供用户使能扩展,属于jupyer server端配置 github...
View ArticleAutomatic Reporting in Python - Part 3: Packaging It Up
As outlined in my previous posts (Part I andPart II available on this fine website), the goal of this project is to make an automatic reporting tool. In this series of guides, the outcome I'm shooting...
View ArticleSubclass Chain.Formatter
Following a remark here: How to define a new string formatter, I tried subclassing string.Formatter . Here is what I've done. Unfortunately I seem to have broken it in the process import string from...
View ArticleConfiguring the Python System
tldr: How is python set up on a Mac? Is there a ton of senseless copying going on even before I start wrecking it? I am hoping to get some guidance regarding Python system architecture on Mac (perhaps...
View ArticleR or Python? Why not both? Using Anaconda Python within R with {reticulate}
(This article was first published on Econometrics and Free Software , and kindly contributed toR-bloggers) This short blog post illustrates how easy it is to use R and python in the same R Notebook...
View ArticlePython Syntax Rules Eliminate Errors Before you start debugging
In python, if you know syntax rules, you can eliminate errors. The basic mistakes programmers do are missing semicolons, adding extra commas, and extra spaces. Python is case sensitive. So using the...
View ArticleMaking NSKeyedArchives human readable
If you've been doing macOS analysis, you are definitely familiar with the ( now not so new ) serialized plist format also known as an NSKeyedArchive . There are parsers available to extract data from...
View Articlepython高性能微服务框架japronto
最近由于业务,在看用 python 写的一些微服务框架,查看资料偶然看到 Japronto 项目 这个项目的官方介绍是 Japronto (from Portuguese "já pronto" /a ptu/ meaning "already done") is a screaming-fast , scalable , asynchronous Python 3.5+ HTTP toolkit...
View Article利用turtle库来画画
#pythonDraw.py import turtle as t t.setup(650, 350, 200, 200) #设置画布位置以及长宽 t.penup() # 画笔抬起来 t.fd(-250) # 画笔向前移动-250像素 t.pendown() # 画笔落下 t.pensize(25) # 设置画笔粗细 t.pencolor("purple") # 设置画笔颜色 t.seth(-40)...
View Article为什么说“人生苦短,我用Python”?
Alan Cooper ――VB之父 头顶茂密程度:★ Bjarne Stroustrup――C++之父 头顶茂密程度:★★ James Gosling――Java之父 头顶茂密程度:★★ Rob Pike――GoLang之父 头顶茂密程度:★★ Brendan Eich――javascript之父 头顶茂密程度:★★★ Rasmus Lerdorf――php之父 头顶茂密程度:★★★ Guido...
View Articlefrom __future__ import annotations
最近做了一些豆瓣的产品业务代码的python 3迁移相关的准备工作。首先当然是要去改那些基础Model,除了代码符合Python3语法要求,这种基础的、核心的代码也要加上类型注解,结果一上来就遇到个问题,和大家分享下。 下面是一个模拟的简单版本的例子(豆瓣厂工和前厂工会理解这种写法:yum:) 最近做了一些豆瓣的产品业务代码的Python...
View ArticleParsing The Clue Chronicles
A long time ago, I procured a 1999 game called Clue Chronicles: Fatal Illusion , based on the classic board game Clue, a.k.a. Cluedo. At the time, I was big into collecting old, unloved PC games so...
View ArticleHugh Rundle: 2018 in review
Inspired by others I'm taking stock of my 2018. I don't tend to count things like how many books I read, but it's good to reflect on where you've been before checking where you're heading. I felt a bit...
View ArticlePython Lambda Functions - Quick Notes
Lambda functions: are anonymous functions with no function name but with function body or definition are useful when a small function is expected to be called once or just a few times are useful as...
View ArticleRevisiting Go
Several months ago I wrote about Crystal and its potential, but also spoke about why Go was not a language I was interested in. In my post, I originally stated the following: No keyword arguments, no...
View ArticleWorking with Apps in Django
In this tutorial, we’ll learn about: What is app in django project and why to use it? How to create app in django project? So let’s start with very first question. What is app in django project and why...
View Articlewordcloud库使用实例
wordcloud库概述 wordcloud是优秀的词云第三方库。词云以词语为基本单位,更加直观和艺术的展示文本 wordcloud库的安装 windows下在命令行输入 pip install wordcloud 配置对象参数 w = wordcloud.WorldCloud(<参数>) #创建wordcloud对象 参数 描述 width 指定词云对象生成图片的宽度,默认400像素...
View Article