请你帮我写下这行python的 语句的 注释 numLines = int(raw_input ('How many lines of stars do you want?'))numStars = int(raw_input ('How many stars per line?'))for line in range (0,numLines):for star in range (0,numStars):print '*',print
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 23:37:30
请你帮我写下这行python的 语句的 注释 numLines = int(raw_input ('How many lines of stars do you want?'))numStars = int(raw_input ('How many stars per line?'))for line in range (0,numLines):for star in range (0,numStars):print '*',print
请你帮我写下这行python的 语句的 注释
numLines = int(raw_input ('How many lines of stars do you want?'))
numStars = int(raw_input ('How many stars per line?'))
for line in range (0,numLines):
for star in range (0,numStars):
print '*',
print
求注释
请你帮我写下这行python的 语句的 注释 numLines = int(raw_input ('How many lines of stars do you want?'))numStars = int(raw_input ('How many stars per line?'))for line in range (0,numLines):for star in range (0,numStars):print '*',print
numLines = int(raw_input ('How many lines of stars do you want?')) //屏幕提示:How many lines of stars do you want?并要求输入一个整数
numStars = int(raw_input ('How many stars per line?')) //屏幕提示:How many stars per line?并要求输入一个整数
for line in range (0,numLines)://for循环,line值从0递增到numLines的值,每次递增1
for star in range (0,numStars)://for循环,star值从0递增到numStars的值,每次递增1
print '*',//打印*
print//打印空行