Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设你有类似的东西:
Dim x, y x = Request("x") y = x * 2
如果 x 不能被解析为整数,是否会出现异常或者结果表达式是否会被解析为 int?
解释器将尝试评估x为数字。如果值是数字(浮点数或整数),则代码有效,否则会发生类型不匹配错误。
x