股票

证券交易所

New York Stock Exchange

Nasdaq Stock Market

London Stock Exchange

As of November 2021, the total market value of all companies trading on LSE was £3.9 trillion.

FTSE 100 Index (pronounced “Footsie 100”) was launched by a partnership of the Financial Times and the Stock Exchange on 3 January 1984. This turned out to be one of the most useful indices of all, and tracked the movements of the 100 leading companies listed on the Exchange.

Shanghai Stock Exchange

Shenzhen Stock Exchange

Hong Kong Stock Exchange

Taiwan Stock Exchange

常见股票指数

Dow Jones
S&P 500
恒生指數

Q&A

What Happens When a Stock Falls Below $1 on the NYSE?

历史

1960年

除四害

2015年

  • 军队改革
  • 2015年10月29日,结束独生子政策

2018年

  • 2018年3月11日,通过修宪

2021年

  • 2021年5月31日,公布三孩政策

李鸿章

  • 淮軍,李鴻章的私人武裝。
  • 李鸿章一生共签下30多个条约,大多為不平等条约。
  • 曾國藩曾說「李少荃拼命做官,俞蔭甫(俞樾)拼命著書」。
  • 左宗棠评价李鸿章是:“对清朝而言,十个法国将军,也比不上一个李鸿章坏事”;“李鸿章误尽苍生,将落个千古骂名”
  • 李鸿章死前,遗产都分给了后代,外孙张志沂(作家张爱玲父亲)得天津租界洋楼八幢,金银无数。
  • 李鸿章因嗜食鲈鱼,时人送绰号“李鲈”。
  • 李鴻章喜歡罵人,親近的人或要重用的人,罵得更兇,所以他身邊的人都看自己被罵得有多厲害,猜測李鴻章對自己是否重視。
  • 李鴻章出访欧美时,逢人就问薪資與年纪,随员提醒他,雖然這是中國人的日常問候,但洋人最忌諱如此,李仍毫不为意。
  • 大跃进时期李鸿章的坟被刨,李鸿章穿着黄马褂的遗体本是保存完好,结果被群众挂在拖拉机后面游街,直到尸骨散尽。

每天六点多起床,少许吃些早点后,就开始批阅公文,办理公务,公余则随意看书和练字。他常常翻阅《资治通鉴》和《庄子》,前者意在从历代治乱兴亡中取得借鉴,后者企图从道家经典中追求“天地与我并生,万物与我为一”的主观精神境界,以期安时处顺,逍遥自得,从失势的苦闷中解脱出来。他曾从曾国藩学习书法,推崇东晋书法家王羲之妍美流便的书法,此间每天临摹唐僧怀仁《集王书圣教序》碑帖,临过之后,细看默思,力求神似。午间饭量颇大,无非山珍海味之类。饭后还要喝一碗稠粥,饮一杯清雞湯,过一会儿再饮一盅以人参、黄芩等药物配制的铁水,然后就脱去长衫,短衣负手,在廊下散步,除非遇到严寒冰雪,从不穿长衣。散步时从走廊的这一端走到那一端,往返数十次,并令一个仆人在一旁记数,当仆人大声禀报“够矣!”时,就掀帘而入,坐在皮椅上,再饮一盅铁酒,闭目养神,一个仆人给他按摩两腿,很久才慢慢睁开眼睛,对守候在一边的幕僚和仆人说:“请诸君自便,予将就息矣,然且勿去。”随即上床午睡一兩個小时。当仆人通报“中堂已起”之后,幕僚连忙入室,同他说古道今。晚餐食量较少,饭后让幕僚自便,“稍稍看书作信,随即就寝”。这种生活规律,“凡历数十百日,皆无一更变”。

1863年,李鴻章在包圍蘇州太平軍後,戈登向李建議,採取誘降策略,欲兵不血刃攻克蘇州,經過一番秘密聯絡和談判,雙方約定:郜永寬獻上譚紹光首級以及整個蘇州城,李鴻章則保郜及部下性命,並給副將以上的人一定官職,由戈登居中擔保,遂成功策反蘇州城內的太平軍高級將領,最終使得三萬太平軍投降,根據約定李鴻章許諾只要太平軍投降,一律不予追究,結果投降兩天後,三萬太平軍就被李鴻章的淮軍屠殺了。

1896年,慈禧任命李鸿章为钦差头等出使大臣,环游诸国,出訪俄國、德國、荷兰、比利時、法國、英國、美國,所到之處皆受當地元首接待,他在美接受纽约时报采访时抨击了排华法案。

Python Introduce

History

Version Date
0.9 1991
1 1994
2.0 2000
3.0 2008
3.6 2016

字符串格式化

1
2
'%d plus %d equals %d' % (1, 1, 2)
> '1 plus 1 equals 2'

保留两位小数

1
2
'%05.2f%%' % 5.6587
> '05.66%'

Python 函数

基本语法

定义函数

1
2
def hello(name):
return 'hello, ' + name + '!'

关键字参数和默认值

1
2
3
4
def userInfo(name, email, age='30'):
print('your name is ' + name + ', email is ' + email)

userInfo(email='aneat@gmail.com', name='xiong')

参数自动封装(参数收集)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 普通参数转换为元组
def printBook(*bookName):
print("\t".join(bookName))

printBookName('鸟哥的Linux私房菜', '不能承受的生命之轻', '遍地风流')

# 关键字参数转换为字典
def coordinate(**point):
print(point)

coordinate(x = 128, y = 10, z = 900)

# 元组分解为普通参数
def add(a, b): return a + b

nums = (2, 9)
print( add(*nums) )

# 字典分解为关键字参数
def add(a = 0, b = 0): return a + b

nums = { 'a': 10, 'b': 3 }
print( add(**nums) )

作用域

函数vars()查看内建作用域字典,global关键字定义全局变量

递归

阶乘

1
2
3
4
5
def factorial(n):
if n == 1:
return 1
else:
return n * factorial(n - 1)

计算幂

1
2
3
4
5
def power(x, n):
if n == 0:
return 1
else:
return x * power(x, n-1)

二分法查找

1
2
3
4
5
6
7
8
9
10
11
12
13
def bins(seq, num, begin=0, end=None):
if end is None: end = len(seq)-1
if begin == end:
if num == seq[begin]:
return begin
else:
return None
else:
mid = (begin + end) // 2
if num > seq[mid]:
return bins(seq, num, mid+1, end)
else:
return bins(seq, num, begin, mid)

函数式编程

map

1
2
items = [1, 2, 3, 4, 5]
squared = list(map(lambda x: x**2, items))

filter

1
2
number_list = range(-5, 5)
less_than_zero = list(filter(lambda x: x < 0, number_list))

reduce

1
2
from functools import reduce
product = reduce((lambda x, y: x * y), [1, 2, 3, 4])

Python 文件处理

Python documentation - File and Directory Access

读取文件

1
2
3
4
5
6
7
8
9
10
11
12
13
f = open('filename.txt', 'r')

# 读取全部内容
f.read()

# # 读取指定位置字符
f.read(4)

# 读单行
f.readline()

# 读多行
f.readlines()

迭代目录

1
2
3
4
5
6
7
import os

directory = os.fsencode(directory_in_str)

for file in os.listdir(directory):
filename = os.fsdecode(file)
print(os.path.join(directory, filename))

迭代文件行

1
2
3
4
5
6
7
8
for line in open('filename.txt', mode="r", encoding="utf-8"):
print(line)

file = open('filename.txt', mode="r", encoding="utf-8")
while True:
line = file.readline()
if not line: break
print(line)

写入文件

1
2
3
4
5
6
7
8
# 覆盖模式
file = open('filename.txt', 'w')

# 追加模式
file = open('filename.txt', 'a')

file.write('abc\n12345')
file.writelines('\nnew line')