Beispiel #1
0
while True:
    try:
        print(next(it))
    except StopIteration:
        sys.exit()
'''
print("-------------iter--------------------\n")

print("-------------函数--------------------")


def helloPrint(name):
    print("hello:", name)
    return


helloPrint("宋觅源")

print("-------------函数--------------------\n")

print("-------------模块--------------------")

#print('Python 路径为:', sys.path, '\n')

# 这是错误写法,还要加入.py 才能用
#   importHello('song')
HelloWorld.importHello('songHello')

print(sys.path)
print("-------------模块--------------------\n")