2009/03/12

The first change of this year is comming soon

Finally, I achieve the goal I made in the student era, joining in ///.

No matter how many difficulties in front of there, we can made it.
I'm not the guy who believes destiny which you can only obey, while I believe there is one thing called faith which you can control. Anyway, it's feels great to make things done.
Not only exciting,  there is some kind of melancholy falling in my mind, for such a great team, for such an enjoyable group, for my elapsing pre-career time.
At the same time, wish  healthy comes along with us.
Keeping on enjoying life in BJ.

2009/02/16

PythonChallenge 1

Procedure
Q:
A:
s = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."
def trans(s1, s2=""):
   for i in s1:
       if i in " .,'":
           s2 += i
       elif i is "y":
           s2 += "a"
       elif i is "z":
           s2 += "b"
       else:
           s2 += chr(ord(i) + 2 )
   return s2

print trans(s)
Conclusion
I think mine is straight, redundance, complex, and does not use the power of standard lib.
Lessons learned:
  1. DRY
  2. string module
Review
N/A

2009/01/13

Python Challenge 0

Q:

A:
My answer is staight:
print  2**38
Other Answers:
Such as using google, use cauculator in Windows.
Just using this to spent the time that I do have post to say....... don't blame me, I'm boring.