自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 Python——错误记录(未解决)

项目场景: 判定是否是对称数组时出现问题: 问题描述 为何第一种代码输出结果有误: def test(num_str): num_str_overturn = num_str[::-1] if num_str_overturn == num_str: return True else: return False num_str = (input("please input a num_str")) print(test(num_str)) 正确答

2022-05-19 20:11:29 106

原创 python——错误记录

python——unittest工具使用中错误分析

2022-05-12 15:02:50 117

原创 Python——类的作用

实例化:基于类来创建对象 形参self——指向实例本身的应用 Example: class Restaurant(): """A class representing a restaurant.""" def __init__(self, name, cuisine_type): """Initialize the restaurant.""" self.name = name.title() self.cuisine_type =

2022-05-12 10:06:22 256 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除