Mugen

What is the smallest piece of matter.
Why do we remember the past and not the future.
And why there is a universe.

Bye Bye Xiami

每当变幻时,便知时光去。 中午Mark发消息说虾米要关闭。 回顾虾米的发展史:虾米音乐已经诞生12年,一直呈现小而美的独立状态,直到2013年1月被阿里收购,2015年3月与天天动听合并为阿里音乐,2019年6月由大文娱划入创新业务事业群。 虾米,有点理想主义气息,可惜没落了。应该说没什么可怀念的吗?因为一切都在往前走,且行且珍惜? 不管是推荐之精准,还是歌单之用心,还是...

Tips About Python Import

"Basic Introduction"

It took longer than expected. Question about if __name__ == '__main__' if name == ‘main’ 如何正确理解? name 是当前模块名,当模块被直接运行时模块名为 main 。这句话的意思就是,当模块被直接运行时,以下代码块将被运行,当模块是被导入时,代码块不被运行。 Same answer i...

Intro to Django

"Basic Introduction"

It took longer than expected. Django Tutorial Django Documentation Django Tutorial Part 3: Using models Django Tips #4 Automatic DateTime Fields How to trigger function in Django app Get ...

Intro to Regular Expression

"Basic Introduction"

It took longer than expected. re — Regular expression operations Python3 - Regular Expression HOWTO 正则表达式30分钟入门教程 What does the “r” in pythons re.compile(r’ pattern flags’) mean?: the r st...

Python Virtual Environments

"Basic Introduction"

It took longer than expected. 目的 如果我们要同时开发多个应用程序,那这些应用程序都会共用一个Python,就是安装在系统的Python 3。如果不同的应用需要不同版本的依赖包怎么办? 这种情况下,每个应用可能需要各自拥有一套“独立”的Python运行环境。virtualenv就是用来为一个应用创建一套“隔离”的Python运行环境。 安装vir...

Setting Personal Domain

"with Tencent Cloud"

It took less time than expected. 昨晚23:30吧,开始在腾讯云购买域名。新用户享受免费SSL证书+免费域名解析+备案领礼包。还有.com域名新用户特惠价23元首年。 这里面的优惠: SSL证书最后被证明不需要,因为github从18年5月开始自定义域名也可以支持HTTPS 免费域名解析(没这个活动腾讯也有免费...

Python Crash Course Part II: Proj 1 - Doge Invasion

"from Alien invasion"

A basic python game using Pygame library 12. A Ship that Fires Bullets In this chapter, you’ll set up Pygame and then create a ship that moves right and left, and fires bullets in response...

Python Crash Course Part I: Basics

"Notes"

A hands-on, project-based introduction to programming. 1. Python Installation Nothing important 2. Variables and simple data types In this chapter you’ll learn about the different ki...

A Programmer's Guide to Data Mining Part II

"Notes"

A guide to practical data mining, collective intelligence, and building recommendation systems by Ron Zacharski. Chapter 5 Further Explorations in Classification This chapter examines seve...

A Programmer's Guide to Data Mining Part I

"Notes"

A guide to practical data mining, collective intelligence, and building recommendation systems by Ron Zacharski. Chapter 1 Introduction Introduction to data mining. What it is. How it is used...