edit.py 文件源码

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

项目:notex 作者: adiultra 项目源码 文件源码
def editor(**kwargs):
    os.environ['ESCDELAY'] = '25'
    if sys.version_info.major < 3:
        lc_all = locale.getlocale(locale.LC_ALL)
        locale.setlocale(locale.LC_ALL, '')
    else:
        lc_all = None
    try:
        return curses.wrapper(main, **kwargs)
    finally:
        if lc_all is not None:
            locale.setlocale(locale.LC_ALL, lc_all)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号