# -*- coding:utf-8 -*-def encrypt(orgs): try: news=[str((int(i)+9)%10) for i in orgs] res=news[2]+news[3]+news[0]+news[1] return res except Exception,e: print orgs,eprint encrypt('1234')
>>>
2301