14 lines
265 B
Python
14 lines
265 B
Python
import sys
|
|
from sys import version, version as v
|
|
|
|
print(sys.version)
|
|
|
|
print(sys.version[:3])
|
|
print(version[:3])
|
|
|
|
# ignore from imports with aliases, patches welcome
|
|
print(v[:3])
|
|
# the tool is timid and only flags certain numeric slices
|
|
i = 3
|
|
print(sys.version[:i])
|