Test
============================================================================================
This is a begining of the test ! ! !
$$ ————Math Test———–$$
$$P = \frac{\sum_{i=1}^n (x_i- x)(y_i- y)}{\displaystyle \left[\sum_{i=1}^n (x_i-x)^2\sum_{i=1}^n (y_i-y)^2\right]^{1/2} }$$
$$ x^2 $$
$$p(Study|Play)=x^2$$
${a_{j1},a_{j2},…a_{jS_j}}$
$${a_{j1},a_{j2},…a_{jS_j}}$$
$$ ———–Tabel———– $$
一个简单的表格是这么创建的:
项目
Value
电脑
$1600
手机
$12
导管
$1
设定内容居中、居左、居右使用:---------:居中使用:----------居左使用------ ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
Python中的set(),zip(),map()函数
set,zip,map这三个函数都属于python的内置函数,有着强大的功能。
1.set()函数语法:
1set(iterable)
参数:iterable:一个序列或其他的可迭代的对象
功能:创建一个无序不重复元素的集合 ,可进行关系测试,删除重复数据,还可以计算交集、差集、并集等。其返回值为一个新的集合对象。例如:
1234567a = '123456' b = '1122aa'x = set(a) ## 输出{'4', '6', '5', '3', '2', '1'},每次运行输出的结果都不一样y = set(b) ## 输出{'2', 'a', '1'} ,每次运行输出的结果都不一样x & y ## 求交集 输出{'2', '1'}x | y ## 求并集 输出{'1', '6', '2', 'a', '5', '4', '3'}x - y ## 求差集 输出{'6', '3', '4', '5'}
...