Get start
Java
1 | public class Client { |
Groovy
1 | static void main(String[] args) { |
JavaScript
1 | console.log("Hello, world."); |
Python
1 | if __name__ == '__main__': |
字符串
Java
1 | public class Client { |
Groovy
1 | static void main(String[] args) { |
JavaScript
1 | let a = "Hello"; |
Python
1 | # coding=utf-8 |
时间格式化
Java
1 | public class Client { |
Groovy
1 | static void main(String[] args) { |
JavaScript
1 | // 当前时间戳 (1532956509000) |
Python
1 | import time |
函数
Java
1 | public class Client { |
Groovy
1 | static void main(String[] args) { |
JavaScript
1 | function plus(a, b) { |
Python
1 | def plus(a=0, b=0): |
列表
Java
1 | public class Client { |
Groovy
1 | static void main(String[] args) { |
JavaScript
1 | // 新建 & 添加 |
Python
1 | # coding=utf-8 |
字典
Java
1 | public class Client { |
Groovy
1 | static void main(String[] args) { |
JavaScript
1 | // 新建 & 添加 |
Python
1 | # coding=utf-8 |
文件
Java
1 | public class Client { |
Groovy
1 | static void main(String[] args) { |
Python
1 | if __name__ == '__main__': |
网络
Java
1 | public class Client { |
Groovy
1 | static void main(String[] args) { |
Python
1 | import urllib2 |