程序报错时的崩溃
# To derive the formula for calculating v_t = v_0 + a * t # for the time at which you achieve # due to gravity and v_t - v_0. Then t = - v_0 / a # Use t and the desired MAX_JUMP JUMP_SPEED = math.sqrt(2 * GRAVITY) TERMINAL_VELOCITY = 50 PLAYER_HEIGHT = 2 import sys import math import random import time from collections import deque from pyglet import image from pyglet.gl import * from pyglet.graphics import Text from pyglet.window import key, mouse # 每秒帧数 TICKS_PER_SEC = 60 if sys.version_info[0] >= 3: xrange = range def cube_vertices(x, y, z, n): """ Return the vertices of the cube """ return [ x-n,y+n,z-n, x-n,y+n,z+n x-n,y-n,z-n, x-n,y-n,z+n x+n,y+n,z-n, x+n,y+n,z+n x+n,y-n,z-n, x+n,y-n,z+n ] def tex_coords(x, y, n=4): """ Return the bounding vertices """ # 错误 转换定义 转换引用 快速查看 Find All References 重命名符号 更改所有匹配项 格式化文档 文档格式设置方式... 重新设定格式 剪切 复制 粘贴 运行当前单元源文件 在 Python 终端中运行选定内容 在终端中运行 Python 文件 错误 出现未知错误,程序无法启动! 确定 终端 调试控制台 问题
视频左侧是一名穿白色 polo 衫的男子,随着右侧 Python 代码不断编辑、弹出中文错误窗口,他的表情从痛苦逐渐变成崩溃,最后张嘴大喊。笑点是把程序员遇到无法启动的未知错误时的绝望具象化,适合发送给正在调试、代码报错或项目彻底失控的人作反应。
- @jemalloc / 281 2021-01-31
- Type
- video, 0:23
- Size
- 400×480 · 2.0 MiB
- Mood
- 崩溃、荒诞
- Language
- zh
- Added