Home > other >  How to use the python print jiujiu multiplication table
How to use the python print jiujiu multiplication table

Time:10-09

Yang multiplication table can use python code to complete, and the code than other simple

CodePudding user response:

Look at the

 

Print (' \ n '. Join (['. Join ([='% s * % s % 2 s' % (y, x, x * y) for y in range (1, x + 1)]) for x in range (1, 10))))

CodePudding user response:

reference 1/f, old coconut response:
this

 

Print (' \ n '. Join (['. Join ([='% s * % s % 2 s' % (y, x, x * y) for y in range (1, x + 1)]) for x in range (1, 10))))


Single code looks be like simple, but it is difficult, especially beginners!

CodePudding user response:

The building Lord this one line of code... How can so strong frighten a hand in a homework to the teacher
  • Related