📜  语句和表达式之间的区别 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:01.945000             🧑  作者: Mango

代码示例1
>>> x + 2         # an expression
>>> x = 1         # a statement 
>>> y = x + 1     # a statement
>>> print y       # a statement (in 2.x)
2