Skip to content

Instantly share code, notes, and snippets.

@zhangzhhz
Created February 18, 2020 01:35
Show Gist options
  • Save zhangzhhz/b27943cc6a437a5b83025cbe699e7d58 to your computer and use it in GitHub Desktop.
Save zhangzhhz/b27943cc6a437a5b83025cbe699e7d58 to your computer and use it in GitHub Desktop.
Perl:
print "$^V\n"; # 5.26.1
print "$]\n"; # 5.026001
Python:
import sys
print(sys.version) # 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
print(sys.version_info) # sys.version_info(major=3, minor=7, micro=0, releaselevel='final', serial=0)
import platform
print(platform.python_version()) # 3.7.0
print(platform.python_version_tuple()) # ('3', '7', '0')
Node.js:
> process.version
'v13.5.0'
> process.versions
{
node: '13.5.0',
v8: '7.9.317.25-node.23',
uv: '1.34.0',
zlib: '1.2.11',
brotli: '1.0.7',
ares: '1.15.0',
modules: '79',
nghttp2: '1.40.0',
napi: '5',
llhttp: '2.0.1',
openssl: '1.1.1d',
cldr: '36.0',
icu: '65.1',
tz: '2019c',
unicode: '12.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment