Home > other >  Python arguments
Python arguments

Time:11-24

 
Def make_car (name, size, * infor) :
"" "input bus information "" "
Cars={}
Cars [' name ']=name
Cars [' size ']=size
For the key and the value in infor. The items () :
Cars [key]=value
Return cars

The car=make_car (' BMW ', 'out',
Color_='winer, RFR=' er ')
Print (car)

The argument why there will be a problem?
  • Related