【Python笔记】常用语法汇总

1. if name == 'main’的意思if __name__ == '__main__'#的意思是:当.py文件被直接运行时if __name__ == '__main__'之下的代码块将被运行#当.py文件以模块形式被导入时,if __name__ == '__main__'之下的代码块不
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×