Differences between revisions 7 and 9 (spanning 2 versions)
Revision 7 as of 2006-08-05 03:46:25
Size: 443
Editor: bohachu
Comment:
Revision 9 as of 2006-08-05 03:47:23
Size: 446
Editor: bohachu
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:

貢獻一下Python的寫法:<BR>
def foo(op,x,y):<BR>
  print eval("%s%s%s"%(op,x,y))<BR>
也是兩行就可以下班喔 :)
用法: foo("+",66,88)

Bowen Chiu
 * 貢獻一下Python的寫法:
 * def foo(op,x,y):
     print eval("%s%s%s"%(op,x,y))
 * 也是兩行就可以下班喔 :)
 * 用法: foo("+",66,88)
 * Bowen Chiu

--

  • 貢獻一下Python的寫法:
  • def foo(op,x,y):
    • print eval("%s%s%s"%(op,x,y))
  • 也是兩行就可以下班喔 :)

  • 用法: foo("+",66,88)
  • Bowen Chiu

ProgrammerJokes/Discuss (last edited 2009-12-25 07:09:35 by localhost)