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.
我正在尝试将变量 X 与 '*' (包括引号,总共 3 个符号字符串)统一我正在做的是一个简单的X='*'.,但这导致 X 具有 value *。如果我去X=''*''.,结果是X=''*''。我很困惑,我该如何实现'*'?
X='*'.
*
X=''*''.
X=''*''
'*'
如果你真的想要一个string,你应该使用双引号:
X="'*'".
如果你想制作一个符号,你可以使用
atom_codes( X, "'*'" ).