可更改(mutable)对象与不可更改(immutable)对象
str, tuple, 和number是不可更改的对象,
list,dict等则是可以修改的对象。
example
结论
- mutable 变量,传址
- immutable 变量,传值
str, tuple, 和number是不可更改的对象,
list,dict等则是可以修改的对象。
1、路径参数:@PathVariable(required = false)实现参数aaa非必传2、非路径参数:@RequestParam(required = false) 实现参数aaa非必传3、实体参数:@RequestBody(required = false)实现实体aaa非必传
作者标题或许是很多初学者的问题。尤其是像
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M