python 异常处理
摘要:
def count_word(filename): try: with open(filename,encoding='utf-8') as file: centent=file.read() except FileNotFoundError: print('filename '+filename+ 阅读全文
posted @ 2019-07-23 18:55 heaven123 阅读(179) 评论(0) 推荐(0) 编辑