令人哇塞的酷鸡 发布的文章

November Headline: Python is unstoppable and surpasses Java

For the first time since the start of the TIOBE index nearly 20 years ago, Java and C don't make up the top 2 positions any more. C is still number one, but it is Python that claims the second position now. Some say that Python's recent surge in popularity is due to booming fields such as data mining, AI and numerical computing. But I have my own take on this. I believe that Python's popularity has to do with general demand. In the past, most programming activities were perfomed by software engineers. But programming skills are needed everywhere nowadays and there is a lack of good software developers. As a consequence, we need something simple that can be handled by non-software engineers, something easy to learn with fast edit cycles and smooth deployment. Python meets all these needs.
Some time ago I had a flat tyre and called the road patrol to help me out. The mechanic asked about my living and when I used the word "software" in my answer, he smiled and started talking very enthousiastically about his own passion: programming in Python. From that moment on, I knew Python would become ubiquitous - Paul Jansen CEO TIOBE Software

排名编程语言Ratings同比上月
1C16.21%+ 0.17%
2Python12.12%+2.27%
3Java11.68%-4.57%
4C++7.60%+1.99%
5C#4.67%+0.36%
6Visual Basic4.01%-0.22%
7JavaScript2.03%+0.10%
8PHP1.79%+0.07%
9R1.64%+0.66%
10SQL1.54%-0.15%
11Groovy1.51%+0.41%
12Perl1.51%+0.68%
13Go1.36%+0.51%
14Swift1.35%-0.31%
15Ruby1.22%-0.04%
16Assembly language1.17%+0.14%
17MATLAB1.10%+0.21%
18Delphi/Object Pascal0.86%-0.28%
19Objective-C0.84%-0.35%
20Transact-SQL0.82%+0.44%
21Classic Visual Basic0.73%--
22Logo0.72%--
23Scratch0.63%--
24PL/SQL0.62%--
25Rust0.58%--
26SAS0.58%--
27Dart0.54%--
28COBOL0.53%--
29Scala0.53%--
30Julia0.50%--
31PowerShell0.48%--
32D0.46%--
33ABAP0.43%--
34Fortran0.41%--
35Lisp0.40%--
36Kotlin0.38%--
37Lua0.37%--
38Ada0.37%--
39VHDL0.35%--
40Prolog0.35%--
41Haskell0.34%--
42Apex0.34%--
43TypeScript0.32%--
44Bash0.31%--
45Tcl0.29%--
46ML0.28%--
47Alice0.27%--
48Scheme0.26%--
49(Visual) FoxPro0.25%--
50Awk0.22%--

后50名(#51-#100)

(因差距很小,故以下按字母顺序列出)
ABC, ActionScript, Applescript, Arc, AutoLISP, bc, Bourne shell, C shell, Clojure, CoffeeScript, Common Lisp, Crystal, cT, Dylan, Elixir, Elm, Emacs Lisp, Erlang, F#, Forth, Hack, Icon, Inform, Io, J, Korn shell, LabVIEW, Ladder Logic, Lingo, LiveCode, Maple, Mercury, MQL4, NATURAL, OpenCL, OpenEdge ABL, PL/I, PostScript, Q, REXX, Ring, RPG, Simulink, Small Basic, Solidity, SPARK, Stata, Vala/Genie, VBScript, Verilog

以上数据来自权威网站TIOBE Index

复制以下代码到console控制中, 并回车执行, 然后只有使用 console.save(变量名) 命令轻松的将控制台中的变量下载到本地来. 

(function(console){
    console.save = function(data, filename){

    if(!data) {
        console.error('Console.save: No data')
        return;
    }

    if(!filename) filename = 'console.json'

    if(typeof data === "object"){
        data = JSON.stringify(data, undefined, 4)
    }

    var blob = new Blob([data], {type: 'text/json'}),
        e    = document.createEvent('MouseEvents'),
        a    = document.createElement('a')

    a.download = filename
    a.href = window.URL.createObjectURL(blob)
    a.dataset.downloadurl =  ['text/json', a.download, a.href].join(':')
    e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null)
    a.dispatchEvent(e)
 }
})(console)

其实在console控制台,也可以使用copy(变量名)来复制变量到剪切板上.copy命令也很方便

注意:
有些情况下使用copy命令复制数组变量总是得到空数组, 那么建议使用对象类型, 使用对象类型一定是复制出来的.

1.对于下拉框:

//加入如下的样式
<style>
    select[readonly] {
        background: #eee;
        cursor: no-drop;
    }
    select[readonly] option {
        display: none;
    }
</style>
//使用时,加上readonl属性就行, 但由于有上面的样式在,所以下拉框是点不动
<select name="" id="" readonly>
    <option value="">1</option>
    <option value="">1</option>
</select>

2.单选框:

//input框很简单直接在点击时加上return false,来阻止点击事件
<input type="radio" onclick="return false;">苹果
<input type="radio" onclick="return false;">榴莲