06 2019 档案

摘要:pickle序列化 # _*_coding:utf-8_*_ import pickle import os list_ec = [] while True: if os.path.isfile("course_list"): # 判断文件夹是否存在 with open("course_list", 阅读全文
posted @ 2019-06-29 09:27 Peng_ing 阅读(406) 评论(0) 推荐(0)
摘要:1、try...except...的例子 # 1.指明是什么错误 # _*_coding:uft-8_*_ try: a = list((i + 2) * 2 for i in range(11)) print(a) number = int(input(">>:")) number = - num 阅读全文
posted @ 2019-06-28 15:14 Peng_ing 阅读(95) 评论(0) 推荐(0)