Python Beginners – use the for loop to make up different numbers with four digits

Time:2020-10-29
digits = (1,2,3,4)
  for i in digits:
     for j in digits:
         if j==i:
             continuefor k in digits:
             if k==i or k==j:
                 continue
             print(i*100+j*10+k)

 

Recommended Today

Raspberry pie intranet penetration construction and maintenance, using intranet penetration without server

Construction and maintenance of raspberry pie intranet penetration pi Overview [](http://neiwangchuantou.cn/arc…Chapter links) Today, we mainly talk about the use ofNetwork cloud wear officialIt provides the function of Intranet penetration to visit the website of raspberry pie on the Internet, and remote management through SSH. Raspberry pie(http://neiwangchuantou.cn/arc…Chapter links) Raspberry pie is a microcomputer based on ARM […]