- 博客(7)
- 收藏
- 关注
原创 Java后端学习笔记
Java后端学习1. Java基础1. 容器Container(容器):线性结构、图状结构 等最常见的容器:List:有序的线性表,可以重复, 没有大小限制Set:无序, 不能重复, 没有大小限制Map:映射表, (结构 key:value), 没有大小限制1. List...
2022-04-12 15:28:56 503 1
原创 pyzero 多小球碰撞反弹
用python中的pygame zero库实现小球碰撞import pgzrunWIDTH = 800HEIGHT = 600ball = []x = WIDTH / 2 - 200y = HEIGHT / 2speed = 10r = 30class Ball: def __init__(self, speedx, speedy, x, y, r, color): self.speedx = speedx self.speedy = spee
2022-03-21 17:40:23 4816 1
原创 2021年蓝桥杯省赛Python A组题目解析
一.填空题1.卡片a = []for i in range(10): a.append(2021)num = 1ans = 0while True: b = list(map(int, str(num))) for j in b: a[j] -= 1 if(a[j]) < 0: ans = num - 1 break if ans != 0: break
2022-03-20 16:04:21 950 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人