学习Visual QuickStart Guide Python (3rd Ed.) by Toby Donaldson (2014)一书中80页的例子,代码如下
运行:
import shapes
shapes.rectangle(3, 8)
shapes.square(5)
结果却是:
************************
*************************
应该是
********
********
********
和
*****
*****
*****
*****
*****