员工思维 主管思维

 

import glob, os

url = 'http://gmyll.oss-cn-beijing.aliyuncs.com/myvideo/45eret.mp4'
os_sep = os.sep
res_v_f_dir = 'D:\\myvonline0423amoss'
f_img_d = '{}{}{}'.format(res_v_f_dir, os_sep, '*.*')
vs = glob.glob(f_img_d)

htmls_s = '<p>MYMP4<p><br><video src="MYMP4" controls="controls">MYMP4</video><br>'
l = []
for i in vs:
    ii = i.split(os_sep)[-1]
    url_ = url.replace('45eret.mp4', ii)
    s='{}/{}{}'.format(vs.index(i)+1,len(vs),htmls_s.replace('MYMP4', url_))
    l.append(s)
res = ''
with open('mymp4.html', 'r', encoding='utf-8') as fr:
    for i in fr:
        res = '{}{}'.format(res, i)
with open('mymp4.html', 'w', encoding='utf-8') as fw:
    fw.write(res.replace('MYMP4', ''.join(l)))

  

 

已知有至少70个视频的播放地址,检测在网页端的可播放性--仅要求打开视频有画面:
同学甲:自动化脚本+屏幕截图+肉眼检测截图
同学乙;脚本生成html代码,放到相同环境下,打开这个页面

甲就是早上“取出2万”的员工,乙则是“取出2万1千”的主管

 

posted @ 2018-04-23 19:40  papering  阅读(245)  评论(0编辑  收藏  举报