File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 58583 . [ 查找指定文件格式文件] ( 查找指定文件格式文件.md )
59594 . [ 使用Python实现群发邮件功能] ( 自动群发邮件.md )
60605 . [ xls批量转化为xlsx] ( xls批量转化为xlsx.md )
61+ 6 . [ 获取指定文件路径下文件修改时间] ( 获取指定文件路径下文件修改时间.md )
62+ 7 . [ 计算指定日期当月最后一天的日期和该月天数] ( 计算指定日期当月最后一天的日期和该月天数.md )
6163
6264
6365#### 七、字符串、正则和爬虫
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ title: 嵌套数组完全展开
33tags : list,recursion,numpy
44---
55
6+ ### 嵌套数组完全展开
7+
68对于如下数组:
79
810```
Original file line number Diff line number Diff line change 11=======
2- 数组完全展开
2+ 2.2 数组完全展开
33=======
44对于如下数组:
55
Original file line number Diff line number Diff line change 1+
2+ def auto_md2rst (input_file ,output_file ):
3+ try :
4+ my_key = 'NrtpV6kD5BdVxJ2R20eBqgCHK6heTjEMxtWSWENeZ9HdKUj5Ew3aCpodMCPPwLeH'
5+
6+
7+ import cloudconvert
8+ api = cloudconvert .Api (my_key )
9+ process = api .createProcess ({
10+ "inputformat" : "md" ,
11+ "outputformat" : "rst"
12+ })
13+
14+ process .start ({
15+ "input" : "upload" ,
16+ "file" : open (input_file , 'rb' ),
17+ "filename" :""
18+ })
19+
20+ process .refresh () # fetch status from API
21+ process .wait () # wait until conversion completed
22+ print (process ['message' ]) # access process data
23+
24+ process .download (output_file )
25+
26+ print ("OK" )
27+ except Exception as e :
28+ print (e )
29+
30+
31+ auto_md2rst ('./md/keras入门例子.md' ,'./rst/keras入门例子.rst' )
You can’t perform that action at this time.
0 commit comments