s_tui.py 文件源码

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

项目:s-tui 作者: amanusk 项目源码 文件源码
def cpu_stats(self):
           """Read and display processor name """
           cpu_name = urwid.Text("CPU Name N/A", align="center")
           try:
               cpu_name = urwid.Text(get_processor_name().strip(), align="center")
           except:
               logging.info("CPU name not available")
           cpu_stats = [cpu_name, urwid.Divider()]
           return cpu_stats
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号