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
66e54a00aa
pythonbook
/
python_advance-main
/
variablescope
/
__main__.py
18 lines
152 B
Python
Raw
Blame
History
count
=
10
print
(
count
)
def
greeting
(
flag
:
bool
)
:
global
count
if
flag
:
count
=
20
print
(
count
)
greeting
(
True
)
print
(
count
)
Reference in New Issue
View Git Blame
Copy Permalink