摘要:
import math def move(x, y, step, angle=0): nx = x + step * math.cos(angle) ny = y - step * math.sin(angle) return nx, ny (import math语句表示导入math包,并允许后续 阅读全文
posted @ 2022-03-01 16:22
胖娃
阅读(585)
评论(0)
推荐(0)
摘要:
关键字raise是用来抛出异常的,一旦抛出异常后,后续的代码将无法运行。这实际上的将不合法的输出直接拒之门外,避免黑客通过这种试探找出我们程序的运行机制,从而找出漏洞,获得非法权限。 a = '123'type_list = ['str','int'] if type(a) not in type_ 阅读全文
posted @ 2022-03-01 16:10
胖娃
阅读(309)
评论(0)
推荐(0)
浙公网安备 33010602011771号