#!/bin/env python from subprocess import run, PIPE def engine2mdlnk(engine): return '

' +engine+ ' +

\n'; html_head = ''' 主屏快捷访问

超微浏览器下点击"+"可自动添加至主屏快捷访问。

'''; html_tail =""; selist = map(engine2mdlnk,[ "凤凰", "腾讯", "搜狐", "网易", "1905电影", "携程", "京东", "苏宁", "淘宝", "天猫", "聚划算", #"", ]); llist = [selist]; print(html_head) print(''.join(string for slist in llist for string in slist)) print(html_tail)