num=1;


while num<5 :

    print ("haha1",end='')
    
    j=1;
    while j<5 :
        #python 3.x 默认是换行的 加上,end="" 表示不换行 ;python 2.x 中 加上,号就可以了。
        print("haha2",end='')
        j+=1

    print("")
    num+=1

 

相关文章:

  • 2022-02-05
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-07-31
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案