Differences between revisions 5 and 8 (spanning 3 versions)
Revision 5 as of 2006-05-10 05:39:48
Size: 269
Editor: AlbertLee
Comment:
Revision 8 as of 2006-08-05 03:46:56
Size: 447
Editor: bohachu
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:

--

 * 貢獻一下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)