Skip to main content
 首页 » 编程设计

python之MATLAB 或 Python 中的双边赋值/声明

2025年05月04日14jackei

<分区>

MATLAB 或 Python 中是否有声明/赋值函数可以双向工作,双边/镜像使用? 示例;

x = 3 
print x 
#output is 3# 

但是如果有这样一种函数呢?

x _=_ 3 
print x 
# output is 3 # 
print 3 
# output is x #