python小数据池,代码块知识
一、什么是代码块? 根据官网提示我们可以获知: A Python program is constructed from code blocks. A block is a piece of Python program text that is executed as a unit. The following are blocks: a module, a function body, and a class definition. Each command typed interactively is a block. A script file ( a file given as standard input to the interpreter or specified as a command line argument to the interpreter ) is a code block. A script command ( a command specified on the interpreter command lin with the '-c' option ) is a code block. The string argument passed to the built-in function eval() and exec() is a code