健康

秃发

预防

避免暴晒 在夜间的十点到凌晨的两点是人体毛发代谢和生长最旺盛的时期

饮食

维生素E

莴苣、卷心菜、黑芝麻

含碱性物质的新鲜蔬菜和水果

强碱性食品:葡萄、茶叶、葡萄酒、海带、柑橘类、柿子、黄瓜、胡萝卜。 中碱性食品:大豆、蕃茄、 香蕉、草莓、蛋白、梅干、柠檬、菠菜等。 弱碱性食品:红豆、苹果、甘蓝菜、豆腐、卷心菜、油菜、梨、马铃薯。

碘质

海带、紫菜、牡蛎

教程

CP01E01 - Python 教程

python

写于 2018-10-17 的一篇python教程

a python file like this:

#!/usr/bin/env python3
#coding=utf-8

# it will print a poetry for python
import this

if __name__ == '__main__':
    print('Hello, World!')

at line 1: it will search a file named python3 in your $PATH to execute

at line 2: #coding=utf-8 or # -*- coding: UTF-8 -*-, will make python support your local characters.

at line 8: in python 2 version, it can replace with print'Hello, World!' . In fact, print is a function in pyhton3 but a command in python2.

You can save this to a file such as awesome.py , and type the command in terminal: /usr/bin/env python3 awesome.py.

Declaration and assignment

a = b = c = 1
assert a == 1 and b == c and a + b + c == 3

a, b, c = 1, 3.14, "a simple string"

Operator

import random

assert 1 + 1 - 1 * 1 + 1 / 1 == 2.0
# <float> = <int> / <int>
assert type(1 / 3) == float
assert 1 / 3 > 0.3333 and 1 / 3 < 0.3334
assert 6 / 10 == 3 / 5 

# <int> = <int> // <int>
assert 16 // 3 == 5 and 16 // 4 == 4 and 16 // 5 == 3
# <int> = <int> % <int>
assert 16 % 3 == 1 and 16 % 4 == 0 and 16 % 5 == 1

# 16 - 20
a = random.randint(16, 21)
# 2 - 7
b = random.randint(2, 8)
print("a = %d, b = %d" % (a, b))
assert a == b * (a // b) + (a % b)

# <number> ** <number>
assert 2 ** 4 == 16 and 2 ** 8 == 256
assert 2 ** 16 == 65536
assert 1.2 ** 2 == 1.44

Data type

#!/usr/bin/python
# -*- coding: UTF-8 -*-

# integer
ten_i = 10
# float
one_tenth_f = 1.0E-1
# string
hello_world = 'Hello' + " " + """
world!
"""

assert type(ten) == int
assert type(one_tenth_f) == float
assert type(hello_world) == str

Data type: list, tuple and dict

beatles = ["John", "Paul", "George", "Lingo"]

if '''Bob''' in beatles:
    print("You just kiding me!")
elif """Lennon""" in beatles:
    print('Right, but never print this!')
else:
    pass

for name in beatles:
    print("The member of the beatles: %s" % name)
  
assert beatles[0] == "John"
# change the member's value in the list
beatles[0] = "John Lennon"
assert beatles[0] == "John Lennon"

兴趣爱好

摄影

剁手区

镜头对比

索尼(SONY)推荐使用场景参考价位重量
索尼(SONY)FE 55mm F1.8 ZA人像4300280g
索尼(SONY)FE 85mm F1.8人像、室内4100371g
索尼(SONY)FE 28-70mm F3.5-5.6 OSS旅行、人像、街拍、风光、微距、野外2000
索尼(SONY)FE 24-240mm F3.5-6.3 OSS旅行、风光、街拍、肖像 、运动5500780g
索尼(SONY)Planar T* FE 50mm F1.4 ZA人像、街拍、夜景10900
索尼(SONY)Sonnar T* FE 55mm F1.8 ZA人像、街拍、室内、风光、夜景、野外5000
索尼(SONY)FE 20mm F1.8 G野外、风光、夜景、星空7500
索尼(SONY)FE 24-105mm F4 G OSS人像、街拍、微距、风光、建筑、运动7600663g
索尼(SONY)FE 70-200mm F4 G OSS人像、特写、野外、运动、风光7700840g
索尼(SONY)FE 200-600mm F5.6-6.3 G OSS运动、野外、鸟14500
索尼(SONY)FE 24mm F1.4 GM人像、室内、野外、风光、夜景、星空11000
索尼(SONY)FE 35mm F1.4 GM街拍、风光、夜景11300524g
索尼(SONY)FE 85mm F1.4 GM人像、视频、夜景11500
适马(SIGMA)推荐使用场景参考价位重量特点
适马(SIGMA)14mm F1.8 DG HSM建筑、星空、风光9000
适马(SIGMA)20mm F1.4 DG HSM建筑、星空、风光、夜景5400
适马(SIGMA)24mm F1.4 DG HSM人像、室内、建筑、星空、风光、夜景4900780g
适马(SIGMA)35mm F1.2 DG DN人像、风光、夜景8300
适马(SIGMA)35mm F1.4 DG人像、风光、夜景43006xxg
适马(SIGMA)40mm F1.4 DG HSM人像、街拍、风光、夜景70001810g
适马(SIGMA)70mm F2.8 DG Macro微距3100515g
适马(SIGMA)105mm F1.4 DG HSM人像、街拍、风光90001645g
适马(SIGMA)14-24mm F2.8 DG DN建筑、星空、风光8600795g
适马(SIGMA)24-70mm F2.8 DG DN人像、街拍、室内、风光、野外、夜景7300830g
适马(SIGMA)70-200mm F2.8 DG OS HSM77001805g防抖
适马(SIGMA)100-400mm F5-F6.3 DG DN65001140g防抖