linchh11117
linchh11117
我这边填的参数是: 图片数量:30 旋转一圈时间:2 视频总时长:600(10分钟) 可是生成的视频只有约4分钟! 这也许是电脑CPU的问题,也有可能是moviepy的问题
顺便再说一下,有时候他会莫名其妙的报错,我明明什么代码都没有修改。。 报错信息: Traceback (most recent call last): File "E:\Downloads\IDM_Download\Zip\python-tools-master\5_rotate_img\main.py", line 223, in generateRotateVideo final_video_path = set_video_music(video_mute_path, self.input_audio_file) File "E:\Downloads\IDM_Download\Zip\python-tools-master\5_rotate_img\main.py", line 95, in set_video_music video_clip = mov.VideoFileClip(video_mute_path) File "D:\c++\python\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 88,...
对了,再添加一个: `新闻投稿.yml`: ``` name: 投稿新闻 description: 投稿“小组件”里的新闻 body: - type: textarea attributes: label: 新闻标题 description: > 简单写一下新闻的标题 validations: required: true - type: textarea attributes: label: 内容 description: > 写一下新闻的内容 validations:...
测试一下,不知道为什么这样了。。。 但是预览还是好好的。。。。 还有待测试的,,,让我再看几下。。。
选一个方便的来写就行了。代码来自CSDN:https://blog.csdn.net/yenoxin/article/details/119865493#:~:text=%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%20window.matchMedia%20%28%22%20%28prefers-color-scheme%3A%20%E4%B8%BB%E9%A2%98%29%22%29%3B%20%E6%9D%A5%E8%8E%B7%E5%8F%96%E3%80%82%20const%20isDarkTheme,%E6%98%AF%E6%B7%B1%E8%89%B2%20if%20%28isDarkTheme.matches%29%20%7B%20%2F%2F%20%E6%98%AF%E6%B7%B1%E8%89%B2%20%2F%2F%20%E4%B8%BB%E9%A2%98%E8%AE%BE%E7%BD%AE%E4%B8%BA%E6%B7%B1%E8%89%B2%E3%80%82
还有,搜索有问题。我搜索“1+1”,结果却是“1 1”;搜索“C#form”,结果只出来了“C”。我问了ChatGPT,根据它的回答,我找到了方法:将mainpage.html中 ``` window.location='https://bing.com/search?q='+this.value; ``` 这一行改成 ``` window.location='https://bing.com/search?q='+encodeURIComponent(this.value); //encodeURIComponent 可以对搜索内容进行编码 ``` 就没有问题了
对了,全屏使用让用户体验更佳: ``` function toggleFullscreen() { //执行一下启动全屏,再执行一次退出全屏 try{ if (document.fullscreenElement) { if (document.exitFullscreen) { document.exitFullscreen(); } } else { if (fullscreenElement.requestFullscreen) { fullscreenElement.requestFullscreen(); } } } catch(err) { console.log("当前浏览器不支持全屏"); } }...