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