Python on Linux/Unix systems version
发布时间
阅读量:
阅读量
wes@wes:~/Documents/python/ch1$ cat python-5
#!/usr/bin/env python
def pyfunc():
print("Hello Function!")
for i in range(5):
pyfunc()
wes@wes:~/Documents/python/ch1$ python python-5
Hello Function!
Hello Function!
Hello Function!
Hello Function!
Hello Function!
wes@wes:~/Documents/python/ch1$ cat shell-5
#!/bin/bash
function shfunc()
{
printf "Hello function\n"
}
for ((i=0; i<5; i++))
do
shfunc
d
全部评论 (0)
还没有任何评论哟~
