问一个python相关的问题,求大神解答 2C

Define a function 'ratio' of two arrays gg and hh:
ratioi=gi+1−gihi+1−hi

where i=0,1,2...,N−1i=0,1,2...,N−1 and NN is the dimension of the arrays. Try to write your function in the best Python practices, e.g., with a docstring, and also such that it prints an error but does not crash when the function cannot be executed.

1个回答

TANRUIQIANG
tanr_xj 这个是什么意思 我不是很懂
大约 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问