Python 与 R 对比:30项指标
Python 对比 R
Python
Python 是一种Object-Oriented, Functional, Procedural编程语言,首次出现于 1991 年,由 Guido van Rossum 设计。主要应用场景:Web Development, Automation, Scripting。
R
R 是一种Multi-paradigm编程语言,首次出现于 1993 年,由 Ross Ihaka, Robert Gentleman 设计。主要应用场景:Data Science, Scientific Computing, Statistics。
30项指标
| 指标 | Python | R |
|---|---|---|
| GitHub Stars | 63766 | 58302 |
| Stack Overflow Tags | 877002 | 729989 |
| TIOBE Rank | 9 | 36 |
| RedMonk Rank | 13 | 20 |
| PYPL Rank | 3 | 24 |
| Average Salary (USD) | 129023 | 122736 |
| Job Postings | 41729 | 38329 |
| Benchmarks Score | 0.97 | 1.0 |
| Learning Curve | Hard | Hard |
| Community Size | Very Large | Very Large |
| Documentation Quality | 9 | 8 |
| Ecosystem Maturity | 10 | 10 |
| Industry Adoption | 10 | 8 |
| Type System Complexity | 9 | 9 |
| Concurrency Support | 10 | 8 |
| Performance - Execution Speed | 10 | 8 |
| Performance - Memory Usage | 9 | 9 |
| Performance - Startup Time | 9 | 8 |
| Tooling Quality | 9 | 8 |
| Package Manager Quality | 9 | 9 |
| IDE Support | 9 | 8 |
| Debugging Experience | 9 | 9 |
| GitHub Stars Rank | 7 | 20 |
| Stack Overflow Tags Rank | 4 | 25 |
| Average Salary Rank | 12 | 23 |
| Job Postings Rank | 9 | 22 |
| Benchmarks Rank | 9 | 4 |
| Learning Curve Score | 1 | 2 |
| Community Size Score | 10 | 9 |
| AHP Score | 8.31 | 7.66 |
AHP综合评分
- Python: 8.31 (#7)
- R: 7.66 (#23)
Python | ######## 8.31
R | ######## 7.66
何时选择Python
Web Development, Automation, Scripting, General Programming. Python 是一种Object-Oriented, Functional, Procedural编程语言,首次出现于 1991 年,由 Guido van Rossum 设计。主要应用场景:Web Development, Automation, Scripting。
何时选择R
Data Science, Scientific Computing, Statistics, Visualization. R 是一种Multi-paradigm编程语言,首次出现于 1993 年,由 Ross Ihaka, Robert Gentleman 设计。主要应用场景:Data Science, Scientific Computing, Statistics。
Hello World 示例
Python:
print('Hello, World!')
R:
print('Hello, World!')