Python学习 - 输入和输出
来源:互联网 发布:vb round函数 编辑:程序博客网 时间:2024/06/05 03:07
#输出print('hello, python')print('The quick brown fox', 'jumps over', 'the lazy dog')#多个字符串,用逗号隔开,就可以连成一串输出#print()会依次打印每个字符串,遇到逗号会输出一个空格print(300) # 300print(100 + 200) # 300print('100 + 200 =', 100 + 200) # 100 + 200 = 300#输入#name = input() #这行必须在命令行执行#打印变量 print(name)name = input()print('hello', name)'''>>> name = input()zhangyaoqi>>> print('hello', name)hello zhangyaoqi'''name = input('Please input your name: ')print('hello', name)'''>>> name = input('Please input your name: ')Please input your name: zhangyaoqi>>> print('hello', name)hello zhangyaoqi>>>'''print('1024 * 768 =', 1024 * 768)#1024 * 768 = 786432
0 0
- Python学习 - 输入和输出
- Python学习(一)----输入和输出
- python学习——输入和输出
- python学习(3)输入和输出
- python 输入和输出
- python输入和输出
- Python输入和输出
- Python 输入和输出
- Python输入和输出
- 【Python】 Python输入和输出
- python学习之 输入 输出
- Python 学习笔记之八——输入和输出
- Python编程入门-第八章 输入和输出 -学习笔记
- 【Python】学习笔记——-8、输入和输出
- Python学习笔记(二)—输入和输出
- python学习笔记(五)——输入和输出
- python的输入和输出
- python 指南 输入和输出
- 疯狂Android讲义(1a)-基于监听的事件处理-控制飞机移动
- MyBatis数据持久化(九)动态sql
- Consuming WebAPI Using jQuery
- 进程 线程的区别
- IOS 跨级页面返回
- Python学习 - 输入和输出
- google开源RPC框架gRPC:安装
- IDL vector filed plot
- CS与BS的区别
- Jquery Cross-Domain ajax call using JSONP
- lighttpd状态机
- spark:SparkSQL练习--51
- jsonp jquery jersey 实现跨域访问
- Android 布局优化(简洁版)