我更喜欢尽可能少的正式定义和简单的数学.
algorithm complexity-theory big-o computer-science time-complexity
我有一段很愚蠢的代码,可以测试变量是否是某个字符串:
If Target.Cell.Value = "1M" or Target.Cell.Value = "1N" or Target.Cell.Value = "1O" Then
...
End If
Run Code Online (Sandbox Code Playgroud)
有没有一种方法可以压缩该If语句-即与列表或类似内容进行比较?
谢谢-KC