python问题!求大神!在线等。回答最快的最正确的给悬赏

2024-12-27 14:00:49
推荐回答(1个)
回答1:

# -*- 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,e
print encrypt('1234')

>>>

2301