print("1234",end="")
print函数,默认在输出内容后加一个换行,如果指定end,则以end内容结束。
函数声明:(在函数定义前保留两个空行)
def 函数名(参数1,参数2): # def 是define的缩写
"""
文档注释
:param 参数1: ...
"""
代码块。。。
return 0 # 返回值
import 文件名
a = 文件名.函数名() # 调用函数
pyc文件,c--->compiled编译过的
python会将模块(import引入的文件)的源码编译为字节码文件