只需一步,快速开始
(setq m "a b c");;返回"a b c"
(read m) ;;返回 a
如何才能获取 a b c
使用道具 举报
他要的是原子A B C,不是表(A B C)
(substr m 1)可以得到"a b c"
不知道能不能满足你的要求
quanlinka发表于2009-4-23 21:07:00(setq m \"a b c\");;返回\"a b c\"(read m) ;;返回 a如何才能获取 a b c
你要的a b c不是字串了,是符号
而且是三个符号,不可能同时返回多个数据
返回表后可以用nth来获取指定索引号的数据
谢谢大家,我找到答案了:
用substring可以截取字符串,
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-2-25 05:45 , Processed in 0.200836 second(s), 25 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.