当前位置:网站首页>2021-03-16 COMP9021第九节课笔记
2021-03-16 COMP9021第九节课笔记
2022-06-24 06:56:00 【紫云无堤】
文章目录
slice函数
官方文档:slice(start, stop[, step])
第一个数是起点,第二个数是终点,第三个数是步长
- 从1到6,每两次取一个点

- 滑动窗口,并求和 - sliding window

- 找到其中最大的和并输出

python自带debug函数
官方资料:debugger
其他简介:breakpoint()函数
p: 输出信息
p a:输出a的值
help : 查看帮助文档
h是简写
查看某个命令的帮助文档
查看p, exit的文档
c: 继续执行到下一个断点
continue
b: 添加断点
b:查看当前用命令添加的断点
b n: 在第n行添加断点
b n, exp: 满足exp时, 在第n行添加断点
练习:在第7行添加断点,继续执行,查看i的值。
n: 继续执行直到当前函数的下一行或结束。
在for循环里使用n
!: 声明
!a = 4: 直接对变量a赋值为4
step: 步进,执行下一条语句,或者进入调用的函数。
简写:s
return:继续执行,直到当前函数返回。
简写:r
tbreak: 暂时的断点,执行一次之后自动删除。
边栏推荐
- 首次曝光 唯一全域最高等级背后的阿里云云原生安全全景图
- Keep one decimal place and two decimal places
- AWTK 最新动态:Grid 控件新用法
- Unity culling related technologies
- 51单片机_外部中断 与 定时/计数器中断
- Latest news of awtk: new usage of grid control
- Swift extension networkutil (network monitoring) (source code)
- Oracle advanced SQL qualified query
- [nilm] non intrusive load decomposition module nilmtk installation tutorial
- 模型效果优化,试一下多种交叉验证的方法(系统实操)
猜你喜欢

Graphmae ---- quick reading of papers

Oracle advanced SQL qualified query

Practice of opengauss database on CentOS, configuration

某问答社区App x-zse-96签名分析

Screenshot recommendation - snipaste

Ad-gcl:advantageous graph augmentation to improve graph contractual learning

Latest news of awtk: new usage of grid control

On the H5 page, the Apple phone blocks the content when using fixed to locate the bottom of the tabbar

Swift 基礎 閉包/Block的使用(源碼)

More than observation | Alibaba cloud observable suite officially released
随机推荐
GraphMAE----论文快速阅读
From jsonpath and XPath to spl
auto使用示例
The monthly salary of two years after graduation is 36K. It's not difficult to say
[C language] system date & time
Methods of vector operation and coordinate transformation
Easyplayerpro win configuration full screen mode can not be full screen why
June 27, 2021: given a positive array arr, it represents the weight of several people
C language_ Love and hate between string and pointer
Jenkins is too old try it? Cloud native ci/cd Tekton
VsCode主题推荐
Teach you how to use the reflect package to parse the structure of go - step 1: parameter type check
宝塔面板安装php7.2安装phalcon3.3.2
redolog和binlog
Examples of corpus data processing cases (reading multiple text files, reading multiple files specified under a folder, decoding errors, reading multiple subfolder text, batch renaming of multiple fil
Simple summary of lighting usage
Leetcode 174 Dungeon games (June 23, 2022)
Swift Extension NetworkUtil(網絡監聽)(源碼)
Svn actual measurement common operation record operation
Case examples of corpus data processing (cases related to sentence retrieval)








