一下代码也是在博客园里学习中看到的,每句基本能理解,可是联系起来就懵了
假如我输入1,1后代码是如何执行的?
int
(
input
(
'height is:'
))
weight
=
int
(
input
(
'weight is:'
))
x_height
=
1
while
x_height<
=
height:
print
(
'#'
,end
=
'')
y_weight
=
1
while
y_weight < weight:
print
(
'#'
,end
=
'')
y_weight
+
=
1
x_height
+
=
1
print
()