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)))
It is known that there are at least 70 video playback addresses, and the playability on the web page is tested - only the video is required to have a screen:
Student A: automated script + screenshot + naked eye detection screenshot
Student B; the script generates html code, put it in the same environment, open this page
A is the employee who "takes out 20,000" in the morning, and B is the supervisor who "takes out 21,000"