摘要:
1.13章实例01 球 import sys import pygame pygame.init() size=width,height=640,480 screen=pygame.display.set_mode(size) color=(0,0,0) ball=pygame.image.load 阅读全文
posted @ 2021-12-16 12:41
林木森3
阅读(50)
评论(0)
推荐(0)
摘要:
1.正则表达式的点星分配 import re str1=input() str2=input() if re.match(str2,str1): print("True") else: print("False") 2.梯形法计算积分值 import math a,b = map(eval,inpu 阅读全文
posted @ 2021-12-16 12:31
林木森3
阅读(162)
评论(0)
推荐(0)
摘要:
1.一元二次方程求根 import math a = eval(input()) b = eval(input()) c = eval(input()) delta = pow(b,2) - 4*a*c if a == 0: if b == 0: print('Data error!') else: 阅读全文
posted @ 2021-12-16 12:27
林木森3
阅读(241)
评论(0)
推荐(0)