python - apply Operation on multiple variables

后端 未结 6 2161
梦谈多话
梦谈多话 2021-01-27 12:26

I know that this is a rather silly question and there are similar ones already answered, but they don\'t quite fit, so... How can I perform the same operation on multiple variab

6条回答
  •  没有蜡笔的小新
    2021-01-27 12:48

    You may want to look into Python's map function. The following link may be helpful:https://www.w3schools.com/python/ref_func_map.asp

提交回复
热议问题