概念 問題的引入 封裝性的體現
權限修飾符 案例 package lesson.l11_oop2;/*** Illustration** author DengQing* version 1.0* datetime 2022/7/3 15:28* function*/
public class Person {private int age;public void setAge(int age) {
/* if (age<0||age>…
python中if __name__ ‘__main__’ 的作用,到底干嘛的?有句話經典的概括了這段代碼的意義:“Make a script both importable and executable”就是讓你寫的腳本模塊既可以導入到別的模塊中用,另外該模塊自己也可執行。這句話&…