Page 37 - Python Cơ Bản
P. 37
def cong(a, b):
return a + b
def tru(a, b):
return a - b
def nhan(a, b):
return a * b
7EY чɹ XϰS QШX JMPI Gɹ XɱR myexample.py XVSRK GɽRK XL
QдG ZЪM JMPI mymath.py ZкE XϰS Ю XVɱR Gɹ RШM HYRK RL
WEY
import mymath
num1 = 1
num2 = 2
print 'Tong hai so la: ', mymath.cong(num1, num2)
:ɧS GSQQERH PMRI XLрG LMЖR KМM JMPI Q]I\EQTPI RL WEY