for j in range(0,5): for i in range(0,5): print ('*',end='') print ('')
***** ***** ***** ***** *****
上述代码中,
(1)换行实现:通过python ('')来起到换行作用。
(2)不换行实现:python ('*',end='')
本文来自博客园,作者:编程狸,转载请注明原文链接:https://www.cnblogs.com/ping-pong/p/7150059.html