摘要: #!/usr/bin/python#coding=utf-8#for buy chicksprint '公鸡5元一只,母鸡3元一只,小鸡一元3只,百钱买百鸡有以下方案'cocks=100//5hens=100//3chicks=100*3for i in range(0,cocks+1): for 阅读全文
posted @ 2019-07-12 17:35 Dragon-海 阅读(2576) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python#coding=utf-8#while99i=1while i<10: j=1 while j<=i: print str(j)+'×'+str(i)+'='+str(i*j), j=j+1 print ' ' i=i+1 阅读全文
posted @ 2019-07-12 14:14 Dragon-海 阅读(1278) 评论(0) 推荐(0) 编辑