
python
文章平均质量分 75
星河辉煌
这个作者很懒,什么都没留下…
展开
-
python中的装饰器:@staticmethod,@classmethod,@abstractmethod ,@property
目录 1.@staticmethod 2.@classmethod3.@abstractmethod 4.@property装饰器原创 2022-07-11 18:39:13 · 1340 阅读 · 1 评论 -
python-一篇学完线程进程的相关概念
目录1.什么是线程2. 什么是进程3.线程和进程的关系4.什么是多线程5.线程和进程的区别6.多线程应用举例原创 2022-06-26 19:45:47 · 403 阅读 · 0 评论 -
python学习记录2-floor()函数/栈
python floor() 返回数字的下舍整数。下舍整数的意思可以通过下面的对应关系进行了解:-45.17 → -46.0100.12 →100.0100.72 →100.0119L → 119.0math.pi → 3.0使用方法:import math # This will import math module'''floor()是不能直接访问的,需要导入 math 模块,通过静态对象调用该方法。''''''语法:math.floor( x )'''p..原创 2022-04-11 11:39:46 · 1834 阅读 · 0 评论 -
python学习记录1-时间/进制/print/小数位
1.python判断字符串是否符合时间格式def check_data_format(): str1=“2022/03/02 12:30:00” flag = is_vaild_date(str1) print(flag) #True or Falsedef is_vaild_date(self,str1): try: if ":" in str1: time.strptime(str1,"%Y/%M/%D %H:%M.原创 2022-03-02 17:18:19 · 462 阅读 · 0 评论