进制演化过程:二进制 逢2进1 八进制逢8进1 十进制逢10进1 十六进制逢16进1 用字母表示
无参函数的定义及调用
首先定义一个函数列如 def one( x, y ):
one1= x+y
return one1
print(one( 4, 5))
得出9
同理 def one2(x,y):
return x*y
print(one2(4,5))
得出20
def one3(x,y):
return x/y
print(one3(6,3))
进制演化过程:二进制 逢2进1 八进制逢8进1 十进制逢10进1 十六进制逢16进1 用字母表示
无参函数的定义及调用
首先定义一个函数列如 def one( x, y ):
one1= x+y
return one1
print(one( 4, 5))
得出9
同理 def one2(x,y):
return x*y
print(one2(4,5))
得出20
def one3(x,y):
return x/y
print(one3(6,3))