第17节--python的输入输出(IO)
2016-10-31 10:21
267 查看
python的输入输出语句
输入:input()
输出:
str() format
code
str_1 = input("enter a string: ") str_2 = input("enter another string: ") print("str_1 is "+str_1+",str_2 is "+str_2) print("str_1 is {} and str_2 is {}".format(str_1,str_2))
console
enter a string: hello enter another string: world str_1 is hello,str_2 is world str_1 is hello and str_2 is world
相关文章推荐
- Python输入输出(IO)
- Python中的输入输出(IO)
- Python输入输出(IO)
- python的IO输入输出
- Python 标准输入输出 StringIO urllib- 千月的python linux 系统管理指南学习笔记(16)
- Python基础-输入输出(IO)
- python_输入输出
- PVFS2源代码分析之输入输出src/io/bmi/reference-list引用表
- IO之文件输入输出流
- Java从入门到精通 - IO输入输出 压缩解压缩
- C,Ruby, Io, PHP, Python, Lua, Java, Perl, Applescript, TCL, ELisp, Javascript, OCaml, Ghostscript性能比较
- java IO 输入输出(十三)
- java从入门到精髓 - IO输入输出
- IO之字节数组输入输出流
- Java从入门到精通 - IO输入输出
- Java从入门到精通 - IO输入输出BufferedReaderWriter
- java IO 输入输出(九)
- java IO 输入输出(十一)
- Ruby, Io, PHP, Python, Lua, Java, Perl, Applescript, TCL, ELisp, Javascript, OCaml, Ghostscript, and C Fractal Benchmark
- java IO 输入输出(十二)