import different module based on python version

Solutions on MaxInterview for import different module based on python version by the best coders in the world

showing results for - "import different module based on python version"
Aisling
04 Aug 2017
1try:
2    import simplejson as json
3except ImportError:
4    import json