Python参考手册----第一章: Python简介(一)
摘要:
一、Python简介1.1 print "Hello World"1.2 变量和算术表达式#printprincipal = 1000rate = 0.05numyears = 5year = 1while year <= numyears: principal = principal * (1 + rate) print year, principal # print(year, principal) print "%3d %0.2f" % (year, principal)# print("%3d %0.2f" % (yea 阅读全文
posted @ 2012-11-29 10:39 屁屁侠 阅读(284) 评论(0) 推荐(0) 编辑