下⾯Python代码实现输出如下图形 ,相关说法正确的是( )。
最后一⾏的print()有错 ,应该修改为print("") ,print()函数不能没有参数
last += 1修改为last = last + 1执⾏效果相同
代码中的range(1, i + 1)应修改为range(1, i)
外层for循环前的last = 1修改为last = 0执⾏效果相同