当前位置:网站首页>实例047:函数交换变量
实例047:函数交换变量
2022-08-10 02:01:00 【懒笑翻】
题目:两个变量值用函数互换。
程序分析:无
一、代码
def exc(a, b):
return (b, a)
a = 0
b = 10
a, b = exc(a, b)
print(a, b)
二、效果

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓懒笑翻诚邀您点击下方一起来学习讨论↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
边栏推荐
猜你喜欢
随机推荐
MMDetection框架的anchor_generators.py解析
量化交易策略介绍及应用市值中性化选股
P1564 膜拜
Go语言JSON文件的读写操作
QT中,QTableWidget 使用示例详细说明
GDB command basic parameters
Pagoda server PHP+mysql web page URL jump problem
ImportError: Unable to import required dependencies: numpy
【QT】QT项目:自制Wireshark
MySQL:日志系统介绍 | 错误日志 | 查询日志 | 二进制日志:bin-log数据恢复实践 | 慢日志查询
[Kali Security Penetration Testing Practice Course] Chapter 8 Web Penetration
数据挖掘和数据仓库之间的区别
T5: Text-to-Text Transfer Transformer
UXDB现在支持函数索引吗?
别再用 offset 和 limit 分页了,性能太差!
2022.8.9考试排列变换--1200题解
C# winform 单选框
官宣出自己的博客了
How Microbes Affect Physical Health
Screen 拆分屏幕









