明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: lisp爱好者

求助--如何对两个列表赋值

  [复制链接]
发表于 2013-1-17 13:58:29 | 显示全部楼层
很好,学习了
发表于 2014-5-27 17:19:48 | 显示全部楼层
本帖最后由 fl202 于 2014-5-27 17:56 编辑

  (setq b12 (list "8000" "5" "600" "22.5" "20" "150" "2500" "2000" "200" "135" "150" "300" "45" "1486.61" "364.47" "226.4" "590.87" "" ""))
  (setq b11 '(edd11 edd12 edd13 edd14 edd15 edd16 edd21 edd22 edd23 edd24 edd25 edd26 edd27 edd41 edd42 edd43 edd44 edd45 edd46))
  (mapcar '(lambda (x y) (set x y))  b11  b12)
  (print edd11)
  (setq b12 (list "4000" "3" "200" "122.5" "20" "150" "2500" "2000" "200" "135" "150" "300" "45" "1486.61" "364.47" "226.4" "590.87" "" ""))
  (mapcar '(lambda (x y) (set x y))  b11  b12)
   (print edd11)
   (setq b12 (list "6000" "3" "200" "122.5" "20" "150" "2500" "2000" "200" "135" "150" "300" "45" "1486.61" "364.47" "226.4" "590.87" "" ""))
   (mapcar '(lambda (x y) (setq x y))  b11  b12)
   (print edd11)
   (print "over")

set    /=  setq


发表于 2016-10-23 14:05:51 | 显示全部楼层
很好的资料,谢谢楼主分享啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-5-20 06:17 , Processed in 0.175058 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表