import sys
# def hello():
#     print("Hello")
#
#
#
# def max(a, b):
#     if a > b:
#         return a
#     else:
#         return b
#
#
# print(max(5,4))
#
#
# def area(w, h):
#     return w * h
#
# def welcome(name):
#     print("welcome", name)
#
#
# w = 4
# h = 5
#
# print(area(w, h))
#
# welcome('hello')
#
# a=[1, 2,3]
#
# welcome(a)
#
# a="Runoob"
#
# print(a)

#
# def change(a):
#     print(id(a))
#     a = 10
#     print(id(a))
#
#
# a = 1
# print(id(a))
# change(a)
#
#
# def changeme( mylist ):
#     mylist.append([1,2,3,4])
#     print('---', mylist)
#     return
#
#
# mylist = [10,20,30]
# changeme(mylist)
# print(mylist)
#
#
# def functionname(*ss):
#      print(ss)
#
#
# functionname('1',2, [1,2,3])
#
#
# def sum(arg1, arg2):
#     # 返回2个参数的和."
#     total = arg1 + arg2
#     print("函数内 : ", total)
#     print(id(total))
#     return total
#
#
# # 调用sum函数
# total = sum(10, 20)
# print(id(total))
# print("函数外 : ", total)
#
# knights = {'gallahad': 'the pure', 'robin': 'the brave'}
#
# for k, v in knights.items():
#     print(k,v)
#
# questions = ['name', 'quest', 'favorite color']
# answers = ['lancelot', 'the holy grail', 'blue']
#
# for q, a in zip(questions,answers):
#     print('{0} ? -- {1}.' . format(q, a))
#
#
# basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
# for f in reversed(basket):
#        print(f)
#
# print(basket)

# print('命令行参数如下:')
# for i in sys.argv:
#     print(i)

#print('\n\nPython 路径为：', sys.modules, '\n')

