wangjicheng886的个人空间 https://blog.eetop.cn/1774723 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

setq()

已有 219 次阅读| 2024-8-30 16:58 |个人分类:SKILL function|系统分类:生活杂谈

setq(

s_variableName

g_newValueExp

)

=>g_result


Description

sets a variable to a new value. setq is the same as the assignment(=) operator.

this is a syntax form. the symbol s_variableName is bound to the value of g_newValueExp.

the first argument to setq is not evaluated but the second one is.

将一个变量设置为新值。setq与赋值(=)运算符相同。
这是一个语法形式。符号s_variableName绑定到g_newValueExp的值上。
setq的第一个参数不会被求值,但第二个参数会。


Example

x=5 =>5

assigns the value 5 to the variable x

setq(x 5) =>5

评论 (0 个评论)

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 28

    粉丝
  • 7

    好友
  • 19

    获赞
  • 8

    评论
  • 133

    访问数
关闭

站长推荐 上一条 /2 下一条

小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-9-27 07:19 , Processed in 0.024363 second(s), 16 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部