This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
当你使用时会发生什么:
这可能就是你在第二个中的意图:-)
换句话说,你似乎已经离开了最后部分的
ord
的表达。事实上,通常获得
98
的唯一方法是:(仅在第二项上使用
ord
),因此您可能需要再次检查。如果,正如您现在所表明的那样,您在每个术语上都使用ord
,那么这对我来说效果很好。它们都从
97 + 98 + 99
返回294
,即a
、b
和的 ASCII 值>c
。And what happens when you use:
which is probably what you intended in that second one :-)
In other words, you appear to have left the
ord
of the final part of the expression.In fact, the only way you would normally get
98
would be with:(with
ord
only on the second term) so you may want to check again. If, as you seem to now indicate, you're usingord
on each term, that works fine for me.Both of them return
294
from97 + 98 + 99
, the ASCII values fora
,b
andc
.