chat.py 文件源码

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

项目:auto_chat 作者: SmallPond 项目源码 文件源码
def get_tasklist():
    '''
    :return: ???????????List
    '''
    taskList = []
    try:
        fileHander = open(_task_file, 'r', encoding='utf-8')      # ????????
    except IOError as e:
        print('????{0}???'.format(_task_file))
        print("## ????{0}??...".format(_task_file))
        os.mknod(_task_file)                                               # ????
        print("??????'{0}'?????????".format(_task_file))
        print("???????????README.txt??")

    fileList = fileHander.readlines()
    # ????
    for line in fileList:
        if line[0] == '#':                                   # ????????‘#’??????
            continue
        else:
            if len(line) > 6:                                # ?? ?? ?? ???6???
                taskList.append(line.split())                # ?????
            else:
                continue                                    # ????????????
    return taskList
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号