使用VBA对指定的单元格赋值并填充颜色 ====================================================== 代码区域 ====================================================== Sub row应用() For Each rw In Rows("1:13") = Then rw.Interior.ColorIndex = rw.Value = End If Next End Sub 效果如下图:
因为研究CodeCombat上的最后一题,自己尝试分解题目,然后想到需要画网格,还有最优化的方法 源代码如下 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace D
// ctx: 获取canvas的id --- const ctx = wx.createCanvasContext('canvasId') // x 横坐标 y 纵左边 w 框的宽度 h 框的高度 r 四个圆角的弧度 c 背景颜色 // canvasListLength : 类型为number.根据条件改变框的高度.可设置为:1或2或者3等等整数 roundRect(ctx, x, y, w, h, r, c = '#000',canvasListLength) { h =