我的python学习之路
2018-05-28 22:18
78 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_41835701/article/details/80489566
输出:
print('hello world') --hello world
print('大家',1+2, )
print(r'\\\大家好,我司、、\\;''')
print('''ni
shi
shui''')
print('你的名字是%s' %'hello','那我的名字是%d'% 12)
print('%2d-%02d' % (3, 1))下面是结果:
大家 3
\\\大家好,我司、、\\; //r' ' 在中间的可以保留原格式,不用转义字符
ni //''' '''' 中间可以控制换行
shi
shui
你的名字是hello 那我的名字是12 //%d %f %s 和C语言中一样,格式控制输出
3-01
输入:
a=input()
print(a)
输入:123
输出:123
相关文章推荐
- 教为学:python学习之路(一):python源码安装
- 我的python学习之路
- 我的python学习之路---optparse源代码学习
- python3 学习之路3
- python菜鸟学习之路
- python学习之路-day5-模块
- 小白的Python学习之路-tuetle函数的使用
- python学习之路------第一个实用的Linux script
- 我的Python学习之路之环境准备
- Python学习之路,方法
- python 学习之路(集合)
- python学习之路-第二天-常见的注意事项(代码风格、运算符、优先级、控制语句)
- Python学习之路二开发工具eclipse(Eclipse3.X)插件的详细配置
- 第六天 Python学习之路~之元组详解
- Python3学习之路~字典操作
- Python学习之路-函数
- python学习之路-day1-python基础1
- python的经验主义学习之路(一)
- python学习之路- 标准库
- python学习之路3之面向对象与继承