摘要: 一.模块的认识 模块就是我们把装有特定功能的代码进行归类的结果.目前写的所有py文件都是模块 引入模块方式: import 模块 from collections import 模块 二.collections模块 collections模块主要封装了一些关于和类的相关操作 1.Counter是一个 阅读全文
posted @ 2018-10-08 19:27 Stone李 阅读(155) 评论(0) 推荐(0)
var a_idx = 0; jQuery(document).ready(function($) { $("body").click(function(e) { var a = new Array("","","","","","","♪","",""); var $i = $("").text(a[a_idx]); a_idx = (a_idx + 1) % a.length; var x = e.pageX, y = e.pageY; $i.css({ "z-index": 999999999999999999999999999999999999999999999999999999999999999999999, "top": y - 20, "left": x, "position": "absolute", "font-weight": "bold", "color": "rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")" }); $("body").append($i); $i.animate({ "top": y - 180, "opacity": 0 }, 1500, function() { $i.remove(); }); }); });