测试从Notepad++导出HTML格式的code
以下为从Notepad++中将code导出(export)为html格式文件的测试案例,如显示符合预期,则表明markdown支持完整HTML语法!
import dmlib as dmimport numpy as npdef group_func(x): return x % 8def task_func(x): return x % 3 + 1def test_dm_map_reduce(): mr = dm.MapReduce() # generate test input input_dim = (1024, 16) x = np.random.rand(input_dim[0], input_dim[1]) num_group_keys = 8 mr.map(x, group_func, num_group_keys) y = mr.reduce(task_func) print(y)if __name__ == ‘__main__‘: test_dm_map_reduce()
相关推荐
BearRui的AK 2020-08-16
swiftwwj 2020-02-24
学习备忘录 2020-01-04
fanhuasijin 2019-12-21
学习备忘录 2019-11-09
qidu 2019-10-28
YoungForever 2017-07-13
BeiweiHuang 2017-07-13
finnaxu 2015-04-19
gzgcz 2016-11-21
刘涛 2013-05-07
linzb 2010-06-22
gcong 2019-06-13
JavaLab 2019-06-13
Leewoxinyiran 2016-09-22
本事记的富伟徐 2016-04-23
ninethought 2011-12-07