2019年7月29日

python 圆曲线

摘要: import numpy as np import matplotlib.pyplot as plt a = 2 t = np.linspace(0 , 2 * np.pi, 1024) X = a*np.cos(t) Y = a*np.sin(t) plt.title('$x=ρcosθ,y=ρs 阅读全文

posted @ 2019-07-29 15:35 暗夜初雪 阅读(287) 评论(0) 推荐(0) 编辑

python pygame黑客帝国的简单实现

摘要: #coding=utf-8 import pygame import random class gameSprite(pygame.sprite.Sprite): def __init__(self, image_name, speed=1): super().__init__() font = p 阅读全文

posted @ 2019-07-29 11:54 暗夜初雪 阅读(273) 评论(0) 推荐(0) 编辑

导航