[Level 2] How to get python version on run-time.

#!/bin/env python
import sys
print sys.version
# python -c 'import sys; print sys.version'
2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.4.3]

Wish this helps. regards, Stanley Huang

Comments

Popular posts from this blog

[Level 2] Shell Interactive With Zenity Episode 5 -- list

[Level 2] iif in Python