08 2018 档案
摘要:BootStrap 大家好 同志们辛苦了 --> 为人民服务 p默认定义文字大小为1...
阅读全文
摘要:>>> from timeit import Timer >>> Timer("temp = x; x = y; y = temp", "x = 2; y = 3").timeit() 0.04535215532074004 >>> Timer("x, y = y, x", "x = 2; y = 3").timeit() 0.06476211600816484
阅读全文
摘要:>>> x = 1 >>> y = 2 >>> assert x == y, "not equals" Traceback (most recent call last): File "", line 1, in assert x == y, "not equals" AssertionError: not equals >>>
阅读全文
摘要:var lastReportTime = 0; //设置时间间隔 window.onload = function(){ setInterval(handleRefresh, 3000); } function handleRefresh(){ var url = "http://gumball.wickedlysmart.com" + "?callback=...
阅读全文
摘要:Mighty Gumball Mighty Gumball Sales function updateSales(sales){ var salesDiv = document.getElementById("sales"); for (var i = 0; i < sales.length; i++){ ...
阅读全文
摘要:window.onload = function(){ //var url = "http://localhost:8000/sales.json"; var url = "http://gumball.wickedlysmart.com"; //从JaveScript发出一个HTTP请求, 需要使用XMLHttpRequest对象 var request = n...
阅读全文