![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python基础
文章平均质量分 86
Fergus awsl
这个作者很懒,什么都没留下…
展开
-
Python PEP8
摘转载 2021-02-25 16:40:58 · 413 阅读 · 0 评论 -
【综合案例】sqlalchemy + pandas + xlwings + smtplib + configparser
每周发送 Top30 客户周环比;q/a原创 2020-05-15 15:29:41 · 393 阅读 · 0 评论 -
# with语句自定义(上下文管理器)__Python
-- coding: utf-8 --“”"Created on Sat Jan 19 14:32:51 2019@author: chen.huaiyu“”"class Testwith_1(object):def __enter__(self): print('run')def __exit__(self, exc_type, exc_val, exc_tb): ...原创 2019-01-19 15:01:28 · 161 阅读 · 0 评论 -
装饰器_Python
# -*- coding: utf-8 -*-"""Created on Sat Jan 19 13:59:23 2019@author: Fergus"""import timedef timmer(func): def wrapper(n): print('start: %s' %time.ctime()) func(n) ...原创 2019-01-19 15:08:00 · 74 阅读 · 0 评论 -
函数&异常判定__Python
#1 创建一个函数,用于接收用户输入的数字,并计算用户输入数字的和from functools import reducea_list = []def add(x, y): return x+ytry: while True: a = input('请输入数字:') if a == '': break ...转载 2019-01-19 15:24:30 · 357 阅读 · 0 评论 -
多线程__Python
摘import threadingfrom time import ctime, sleepdef music(func): for i in range(2): print('listening to %s %s' %(func, ctime())) sleep(4) def movie(func): for i in ...转载 2019-01-19 15:29:49 · 90 阅读 · 0 评论 -
py问
list->str;dict->DataFrame;原创 2019-06-13 16:09:50 · 110 阅读 · 0 评论