python study notes --- twelve

# Receiving n parameters, the maximum and minimum return
DEF FUNC (* args):
m = args [0]
mi The args = [0]
for EL in args:
IF EL> m:
m = EL
IF EL <mi The:
mi The EL =
return { "maximum value": m, "Min":} mi The
Print (FUNC (1,2,3,4,5,6,7,8,89,10))

 

 

yanse = ["红心", "草花", "方块", "黑桃"]
dianshu = ["A","2","3","4","5","6"]
result = []
for el in yanse:
for dian in dianshu:
result.append((el,dian))

print(result)

Guess you like

Origin www.cnblogs.com/xiangshangyou/p/11324395.html