#ÓÃ3ÒýºÅ°üº¬£¬×¢ÒâËõ½ø  
 | 
("""  
 | 
def GetCodeStrExecResult(curPlayer, inMsg):  
 | 
    import md5  
 | 
    import math  
 | 
    key = "God is girl."  
 | 
  
 | 
    md5Msg = md5.md5(inMsg).hexdigest()  
 | 
  
 | 
    minChar = md5Msg[15]  
 | 
    randChar = md5Msg[10]  
 | 
      
 | 
    curPower = (ord(minChar) + ord(randChar))%64 + 64  
 | 
  
 | 
    curJob = 11  
 | 
    curSex = 22  
 | 
      
 | 
    if hasattr(curPlayer, 'GetJob'):  
 | 
        curJob = curPlayer.GetJob()  
 | 
    elif hasattr(curPlayer, 'Job'):  
 | 
        curJob = curPlayer.Job()  
 | 
          
 | 
    if hasattr(curPlayer, 'GetSex'):  
 | 
        curSex = curPlayer.GetSex()  
 | 
    elif hasattr(curPlayer, 'Sex'):  
 | 
        curSex = curPlayer.Sex()  
 | 
      
 | 
    tmpNum = curJob*2%2  
 | 
      
 | 
    floatNum = 0.12783  
 | 
    if tmpNum == 0:  
 | 
        floatNum = float(curJob*3)/7  
 | 
    elif tmpNum == 1:  
 | 
        floatNum = float(curJob*curSex + 1)/7  
 | 
      
 | 
    floatNum = round(floatNum, 6)  
 | 
    calValue = math.pow(2, curPower) + floatNum  
 | 
      
 | 
    resultStr = md5.md5(md5.md5('%s%s'%(calValue, floatNum)).hexdigest() + key + md5Msg).hexdigest()  
 | 
      
 | 
    numStr = ''  
 | 
    for i in [13, 11, 17]:  
 | 
        numStr += str(ord(resultStr[i]))  
 | 
      
 | 
    tmpNum = 0  
 | 
    for j in [7, 12, 14]:  
 | 
        tmpNum += ord(resultStr[i])  
 | 
      
 | 
    return tmpNum + int(numStr)  
 | 
"""  
 | 
) 
 |