MX space


  • 首页

  • 标签

  • 分类

  • 归档

  • 日程表

  • 搜索

Afternerd Python Part(2)

发表于 2018-08-28 | 更新于 2019-05-03 | 分类于 Python | 阅读次数:
本文字数: 1.3k | 阅读时长 ≈ 1 分钟

This article is about python programming skills from afternerd

阅读全文 »

Afternerd Python Part(1)

发表于 2018-08-25 | 更新于 2019-05-03 | 分类于 Python | 阅读次数:
本文字数: 1.6k | 阅读时长 ≈ 1 分钟

This article is about python programming skills from afternerd

阅读全文 »

Django Views

发表于 2018-08-16 | 更新于 2019-05-03 | 分类于 Python , Django , View | 阅读次数:
本文字数: 3.4k | 阅读时长 ≈ 3 分钟

In django, there’re three terms about views. They’re:

  • Function-Based Views (FBV)
  • Class-Based Views (CBV)
  • Generic Class-Based Views (GCBV)
阅读全文 »

Django Unit Test

发表于 2018-08-15 | 更新于 2019-05-03 | 分类于 Python , Django , Test | 阅读次数:
本文字数: 3.1k | 阅读时长 ≈ 3 分钟

Below is a collection of django unit test cases.

阅读全文 »

守住舌尖上的幸福

发表于 2018-08-15 | 更新于 2018-08-25 | 分类于 时评 | 阅读次数:
本文字数: 908 | 阅读时长 ≈ 1 分钟

unsplash

“民以食为天”,食品安全问题,贯穿食品生产和消费的始终,不仅是每一个生产经营者必须坚守的红线,同时也直接关系到千家万户的身心健康,是人民群众舌尖上幸福的保证。中国是食品生产和消费大国,食品安全不仅关系人民福祉,也是经济能否健康运行的重要体现。食品安全问题,作为全社会所共同关注的焦点,必须常抓不懈,丝毫不能放松。

阅读全文 »

Git Ignore Template for Python

发表于 2018-08-14 | 更新于 2018-08-25 | 分类于 Git | 阅读次数:
本文字数: 1.8k | 阅读时长 ≈ 2 分钟

ignore

How to write a .gitignore file for python projects?

Most beginners will write it manually with project increase, and without the sense to classify the ignore file content.

I found a Git repository contains all the ignore file templates for most programming languages.

阅读全文 »

Flake8 With Django

发表于 2018-08-14 | 更新于 2019-05-03 | 分类于 Python , Flake8 | 阅读次数:
本文字数: 1.4k | 阅读时长 ≈ 1 分钟

unsplash

I’m working on an Django project. I want to add flake8 to check my django codes today, and make code changes must be checked before commit.

Here’s what I did.

阅读全文 »

Hexo Deploy Without Password

发表于 2018-08-14 | 更新于 2019-05-03 | 分类于 Hexo | 阅读次数:
本文字数: 1.7k | 阅读时长 ≈ 2 分钟

unsplash

This articles talks about how to deploy hexo blog to hexo page services without enter username and password.

The key process is to config hexo _config.yml, and change the deploy segement.

1
2
3
4
deploy:
type: git
repo: git@github.com:username/repository-name.github.io.git
branch: master

For more details, step below:

阅读全文 »

Django Form Api

发表于 2018-08-11 | 更新于 2019-05-03 | 分类于 Python , Django , Form | 阅读次数:
本文字数: 2.3k | 阅读时长 ≈ 2 分钟

unsplash

阅读全文 »

斐波拉契O(1)算法

发表于 2018-08-11 | 更新于 2018-08-25 | 分类于 algorithm , fibonacci | 阅读次数:
本文字数: 396 | 阅读时长 ≈ 1 分钟

第n个斐波拉契数的O(1)算法

1
2
def fib(n):
return (4 << n*(3+n)) // ((4 << 2*n) - (2 << n) - 1) & ((2 << n) - 1)
阅读全文 »
1…678…21
Yarving Liu

Yarving Liu

206 日志
55 分类
110 标签
RSS
GitHub E-Mail
© 2020 Yarving Liu | 275k | 4:10
由 Hexo 强力驱动 v3.9.0
|
主题 — NexT.Mist v6.2.0
0%