Skip to content

Instantly share code, notes, and snippets.

@peace098beat
Created May 18, 2019 00:10
Show Gist options
  • Save peace098beat/41f860fe86973ec470fa2916c376958a to your computer and use it in GitHub Desktop.
Save peace098beat/41f860fe86973ec470fa2916c376958a to your computer and use it in GitHub Desktop.
Pythonのヴァージョン確認
import sys
# Check Python Version
if sys.version_info.major < 3:
sys.stderr.write('Please use python 3.x\n')
sys.stderr.write(
'Your python version is as following:{}\n'.format(sys.version))
exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment