摘要: 计算机界著名公式,由瑞士计算机科学家尼克劳斯.威茨(Niklaus Wirth)提出,也因此获得图灵奖程序 = 数据结构 + 算法没有看过数据结构和算法,有时面对问题可能会没有任何思路,不知如何下手去解决;大部分时间可能解决了问题,可是对程序运行的效率和开销没有意识,性能低下;有时会借助别人开发的利 阅读全文
posted @ 2020-01-06 23:53 手可摘星辰/* 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: # pygame游戏库,sys操控python运行的环境 import pygame, sys, random # 这个模块包含所有pygame所使用的常亮 from pygame.locals import * # 1,定义颜色变量 # 0-255 0黑色 255白色 redColor = pyg 阅读全文
posted @ 2020-01-06 23:22 手可摘星辰/* 阅读(4510) 评论(0) 推荐(0) 编辑
摘要: 第一种 import time start = time.clock() print(start) sum = 0 for i in range(1000000): sum +=i end = time.clock() print(end) yongshi = end - start print(" 阅读全文
posted @ 2020-01-06 23:09 手可摘星辰/* 阅读(5595) 评论(0) 推荐(1) 编辑
摘要: 生命周期函数创建之后,响应回车事件 created: function() { var _this = this; document.onkeydown = function(e) { //按下回车提交 let key = window.event.keyCode; //事件中keycode=13为 阅读全文
posted @ 2020-01-06 20:38 手可摘星辰/* 阅读(4831) 评论(0) 推荐(1) 编辑