Python 练习实例34
题目:练习函数调用。
程序分析:使用函数,输出三次 ZHISHITU 字符串。
实例
#!/usr/bin/python
# -*- coding: UTF-8 -*-
def hello_zhishitu():
print ('ZHISHITU')
def hello_zhishitus():
for i in range(3):
hello_zhishitu()
if __name__ == '__main__':
hello_zhishitus()
#!/usr/bin/python
# -*- coding: UTF-8 -*-
def hello_zhishitu():
print ('ZHISHITU')
def hello_zhishitus():
for i in range(3):
hello_zhishitu()
if __name__ == '__main__':
hello_zhishitus()
以上实例输出结果为:
ZHISHITU
ZHISHITU
ZHISHITU
a href="https://zhishitu.com/" target="_blank">