This website requires JavaScript.
Explore
Help
Sign In
zhangyuqing
/
pythonbook
Watch
1
Star
0
Fork
You've already forked pythonbook
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
master
pythonbook
/
10个编程技巧
/
变量的交换.py
12 lines
78 B
Python
Raw
Permalink
Blame
History
# 交换变量
# 原始
a
=
1
b
=
2
tmp
=
a
a
=
b
b
=
tmp
# 实际
a
,
b
=
b
,
a
Reference in New Issue
View Git Blame
Copy Permalink