课件编号10398294

2020-2021学年浙教版(2019)高中信息技术必修一 3.3第13课时 解决实际问题-课件(21张PPT)

日期:2024-05-15 科目:信息技术 类型:高中课件 查看:25次 大小:2674071Byte 来源:二一课件通
预览图 1/9
2020-2021,21张,-课件,实际问题,解决,13课时
  • cover
(课件网) 解决实际问题 算法程序实现综合应用 谢谢 donoso donoso 凶 准考证号 00]001[0|[0J0[0J[0 1t111t1t11c1|11 2t2121212[2[2|21[2 3t31313t3t3t33t3 414[441[4t441[4Jt4 51t5151t5t515151(5t5 61E6t61661|66|616 77t77t77t77t7 81818181888818 99t9r9999t9r9 et ∴ B=241 hd=0.299*R+0.587米G+0.114* hd<132 print ("黑色") e se print ("白色") def pd (r, G, B) hd=0.299来R+0.587*G+0.114米 hd<132 pr int("黑色 e se print ("白色" pd(43,10,241) 签 def pd (r, G, B) hd三0.299*R+0.587*G+0.114*B f hd 132 return"黑色 e se return"白色" rom mport mage m=Image. open(tt. bmp") pix=im. load count=o for x in range(12, 37) ry in range (92, 105) R, G, B=pix Lx, y f pd (r, G, B 黑色 count=coun f count>=((105-92)*(37-12)*0.64) print("已填涂 e se print( 未填涂!") def tt(x, y) count=0 range (X, x width+1 n range(y, y+fiii height+1) R,G,B=pili, j fpd(R,G,B)=="黑色 count count>=fi width*fi he i ght*0. 64 return"已填涂 e se return"未填涂 01 e X, y count=o n range(X, X dth+1) or」 In range(y dth+1) R, G, B=pix d(R,G,B)=="黑色 coun count>=fi width*fi he i ght*0. 64 return"已填涂" e se return"未填涂

~~ 您好,已阅读到文档的结尾了 ~~