#coding=utf-8def Total_number_of_students(boys, girls): PRint "There are %d boys within the environment." % boys print "There are %d girls within the environment./n" % girls#運行方式一:數字print "Here's the most simple way to Operate this function by using numbers"Total_number_of_students(4, 5)#運行方式二:變量print "Here's another way to make the function works by working with arguments."boys = 10girls = 20Total_number_of_students(boys, girls)#運行方式三: 數學表達式print "Here's another way to import numbers to functions"Total_number_of_students(10 + 3, 10 + 4)#運行方式四:數字+變量print "Here's another way to make the function works."Total_number_of_students(boys + 4, girls + 5)#運行方式五:用戶輸入print "Here's the fifth way to make the function meaningful by raw_input:"boys = int(raw_input("how many boys are there within the environment?"))girls = int(raw_input("how many girls are there within the envrionment?"))Total_number_of_students(boys, girls)#運行方式六:用戶輸入2Note:1)def函數名是由:字符與下劃線組成的。2)函數名后面緊跟著()3)()里面包含著參數,多個參數用逗號隔開,切不能使用重復的參數名。4)函數名后面的(),緊跟著:5)4個空格縮進后,編寫該函數的代碼。6)用戶在終端輸入時的數字也是字符串,應該使用X = int(raw_input()) 來處理