输出 占位符 一些技巧 s% 和 f{} 比较特殊: f{} 输出格式看着比较方便 转义字符 python输出默认带了一个换行符,可以自己换成其它 在这里插入代码片 print("hello", end=" ") print("world") print("hello") print("python") 输出: hello world hello python 输入 因为输入的都是当作字符串,之后可以类型转换为自己需要的类型