while循环与end使用方法 ceng = 1while ceng<=5: count = 1 while count <= ceng: print('*',end = '') #加入end='', 打印不换行 count += 1 ceng += 1 print()打印结果为:***********... Python 2023-05-11 207 点赞 3 评论 313 浏览