Home > other >  How to solve this problem in python, please?
How to solve this problem in python, please?

Time:12-01

Enter a number and line number for each Sprite graphics, according to the law of data output graphics,

CodePudding user response:

 a, b=map (int, input (" & gt;" ). The split (", ")) 

Print ((' \ n '. Join ([' * (b - _) + '*' * _ * (2-1) for _ in range (1, b + 1)]) + '\ n') * a)

CodePudding user response:

Thank you very much!

CodePudding user response:

 count, rows=map (int, input (' input count, the row Numbers: '). The split (', ')) 
For loop in range (count) :
For a row in the range (1, rows + 1) :
Print (' * (rows, row) + '*' * (2 * row - 1))

CodePudding user response:

Thank you very much!!!!!
  • Related