YoutubeDL.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:optimalvibes 作者: littlemika 项目源码 文件源码
def to_console_title(self, message):
        if not self.params.get('consoletitle', False):
            return
        if compat_os_name == 'nt' and ctypes.windll.kernel32.GetConsoleWindow():
            # c_wchar_p() might not be necessary if `message` is
            # already of type unicode()
            ctypes.windll.kernel32.SetConsoleTitleW(ctypes.c_wchar_p(message))
        elif 'TERM' in os.environ:
            self._write_string('\033]0;%s\007' % message, self._screen_file)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号