摘要:
Python是动态类型语言,也就是不需要预先定义变量类型。变量的类型和值在赋值那一刻被初始化。变量赋值通过符号来执行。例如:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->counter=0miles=100.0name='boob'counter=counter+1kilomters=1.609*milesprint'%fmilesisthesameas%fkm'%(miles,kilomters)输入结果是 阅读全文
posted @ 2011-02-17 22:45
jackdesk
阅读(491)
评论(0)
推荐(1)
浙公网安备 33010602011771号