会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
蓝绝
博客园
首页
新随笔
联系
订阅
管理
公告
上一页
1
···
14
15
16
17
18
19
20
21
22
···
24
下一页
2022年9月10日
#
12.2 类与对象
摘要:
阅读全文
posted @ 2022-09-10 20:50 蓝绝
阅读(7)
评论(0)
推荐(0)
12.1 编程的两大思想_面向过程_面向对象
摘要:
阅读全文
posted @ 2022-09-10 20:42 蓝绝
阅读(18)
评论(0)
推荐(0)
11.9.1 异常的总结和复习
摘要:
阅读全文
posted @ 2022-09-10 20:41 蓝绝
阅读(25)
评论(0)
推荐(0)
11.9 Pycharm的程序调试
摘要:
阅读全文
posted @ 2022-09-10 20:33 蓝绝
阅读(20)
评论(0)
推荐(0)
11.8 traceback模块的使用
摘要: import traceback try: print(' ') print(1/0) except: traceback.print_exc() #print('有异常') E:\PycharmProjects\pythonProject\venv\Scripts\python.exe E:/Py
阅读全文
posted @ 2022-09-10 20:16 蓝绝
阅读(128)
评论(0)
推荐(0)
2022年9月9日
#
11.7 Python中常见的异常类型
摘要: #print(10/0) #ZeroDivisionError lst=[11,22,33,44] #print(lst[4]) #IndexError 索引从0开始 dic={'name':'张三','age':20} #print(dic['gender']) #KeyError #print(
阅读全文
posted @ 2022-09-09 15:15 蓝绝
阅读(16)
评论(0)
推荐(0)
11.6 try-except-else结构与try-except-else-finally结构
摘要: #try...except...else结构 如果try块中没有抛出异常,则执行else块,如果try中抛出异常,则执行except块. try: a = int(input('请输入第一个整数')) b = int(input('请输入第二个整数')) result = a / b except
阅读全文
posted @ 2022-09-09 15:04 蓝绝
阅读(72)
评论(0)
推荐(0)
11.5 Bug的常见类型-被动掉坑-try-except
摘要: try: a=int(input('请输入第一个整数')) b=int(input('请输入第二个整数')) result=a/b print('结果为:',result) except ZeroDivisionError: print('对不起,除数不允许为0') except ValueErro
阅读全文
posted @ 2022-09-09 11:48 蓝绝
阅读(21)
评论(0)
推荐(0)
2022年9月7日
#
11.4 Bug的常见类型-思路不清导致的部题
摘要: lst=[{'rating':[9.7,2062397],'id':'1292052','type':['犯罪','剧情'],'title':'肖申克的救赎','actors':['蒂姆·罗宾斯','摩根·弗里曼']}, {'rating':[9.6,1528760],'id':'1291546',
阅读全文
posted @ 2022-09-07 21:23 蓝绝
阅读(35)
评论(0)
推荐(0)
11.3 Bug的常见类型_错误点不熟悉导致错误
摘要:
阅读全文
posted @ 2022-09-07 16:05 蓝绝
阅读(72)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
21
22
···
24
下一页
博客园
© 2004-2025
浙公网安备 33010602011771号
浙ICP备2021040463号-3