随笔分类 -  Python

摘要:源码 # _*_coding:utf-8_*_ import os import datetime # 年-月-日 时:分:秒 now_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") # 年 year_time =dateti 阅读全文
posted @ 2019-07-06 08:37 Peng_ing 阅读(3435) 评论(0) 推荐(0)
摘要:从teacher.py文件中运行是正常运行的 当调用到bin文件夹下的start.py文件下运行时出现属性错误 错误的源码: # teacher.py # _*_coding:utf-8_*_ import os import pickle class Path: teacher_path = "% 阅读全文
posted @ 2019-07-05 23:45 Peng_ing 阅读(1349) 评论(0) 推荐(0)
摘要: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 阅读(425) 评论(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 阅读(103) 评论(0) 推荐(0)
摘要:pycharm安装教程 注:pycharm安装支持win7 与win10 ,以及虚拟机安装。 1、先从百度云盘里面下载pycharm软件: 链接:https://pan.baidu.com/s/1ezru_gBKBP1961MN_rtcUw 提取码:12sx 2、下载好之后安装pycharm 201 阅读全文
posted @ 2019-03-07 15:06 Peng_ing 阅读(29) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2019-02-24 23:22 Peng_ing 阅读(7) 评论(0) 推荐(0)