你要问什么方面的赋值?一些简单的(1)gen x=1 (创造X变量,使X变量为1)(2)gen x=. (创造X变量,不赋值) gen y=1 replace x=y-1 (使x变量变为y变量减一,也就是0)你可以问的具体一些~