摘要:
radius = input("What is the radius?")square = radius*radius*3.14print 'The square is '+ square以上代码运行会报错。原因如下:Python与Java不同,「+」运算符不会自动将整型等其他类型转换为字符串类型。为了连接不同类型的变量,str()函数可以将这些变量转换为字符串类型。修改如下,即可成功运行:print 'The square is '+ str(square) 阅读全文
posted @ 2012-10-23 13:29
涅槃小鸟
阅读(145)
评论(0)
推荐(0)
摘要:
记录一下:WebSpy Vantage Giga功能很强大。只是目前只有试用版,30天。上图: 阅读全文
posted @ 2012-10-23 10:44
涅槃小鸟
阅读(320)
评论(0)
推荐(0)

浙公网安备 33010602011771号