“#”是什么?帕斯卡的符号?
例如:
x := #123;
我尝试在谷歌上搜索,但我根本不知道这意味着什么。
For example:
x := #123;
I tried to search around Google but I simply have no idea what this means.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
IIRC 它表示数字的字符值(例如#32 -> 空格)。
IIRC it means a character value of the number (eg. #32 -> space).
#123
是序数值123
的字符(Char
类型)。#123
is a character (Char
type) of the ordinal value123
.这是字符代码。 #97 相当于 'a' 等
图表可以在此处查看。
It's character code. #97 is equivalent to 'a' etc etc
A chart can be see here.
它是标准 Pascal 的扩展,Borland Pascal 接受井号 ('#') 后紧跟一个 0 到 255 之间的十进制数作为该代码的单个字符。
It is an extention to standard Pascal, Borland Pascal accepts the pound sign ('#') followed immediately by a decimal number between 0 and 255 as a single character with that code.
正如其他人提到的那样,它是一个字符代码,我最常看到它们用于消息中的换行符,或其他控制字符,例如 Tab (#9)
奇怪的是,没有必要连接涉及这些的字符串。
As other have mentioned it's a character code, I most often see them used for line breaks in messages, or other control character such as Tab (#9)
Strangely it's not necessary to concatinate a string involving these.
这是字符代码。 #97 相当于 chr(97) 等等
It's character code. #97 is equivalent to chr(97) etc etc