题目:练习函数调用。
练习代码:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def hello_world():
print('hello world')
def three_hellos():
for i in range(3):
hello_world()
if __name__ == '__main__':
three_hellos()
题目:练习函数调用。
练习代码:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def hello_world():
print('hello world')
def three_hellos():
for i in range(3):
hello_world()
if __name__ == '__main__':
three_hellos()