第7个python程序:更多打印
来源:互联网 发布:java电商项目视频教程 编辑:程序博客网 时间:2024/05/01 20:16
[root@mysql1 pshell]# cat ex7.py
#!/usr/bin/env Python
#-*-coding:utf-8-*-
print "mary had a little lamb."
print "its fleece was white as %s." % 'snow'
print "and everywhere that mary went."
print "." * 10 #what'd that do?
end1="c"
end2="h"
end3="e"
end4="e"
end5="s"
end6="e"
end7="b"
end8="u"
end9="r"
end10="g"
end11="e"
end12="r"
#wtch that comma at the end. try removing it to see what happens
print end1 + end2 + end3 + end4 + end5 + end6,
print end7 + end8 + end9 + end10 + end11 +end12
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]# python ex7.py
mary had a little lamb.
its fleece was white as snow.
and everywhere that mary went.
..........
cheese burger
#!/usr/bin/env Python
#-*-coding:utf-8-*-
print "mary had a little lamb."
print "its fleece was white as %s." % 'snow'
print "and everywhere that mary went."
print "." * 10 #what'd that do?
end1="c"
end2="h"
end3="e"
end4="e"
end5="s"
end6="e"
end7="b"
end8="u"
end9="r"
end10="g"
end11="e"
end12="r"
#wtch that comma at the end. try removing it to see what happens
print end1 + end2 + end3 + end4 + end5 + end6,
print end7 + end8 + end9 + end10 + end11 +end12
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]# python ex7.py
mary had a little lamb.
its fleece was white as snow.
and everywhere that mary went.
..........
cheese burger
0 0
- 第7个python程序:更多打印
- 第7个python程序:打印
- 第24个python程序:更多练习
- 第9个python程序:打印,打印,打印
- 第1个python程序:打印
- 第8个python程序:还是打印
- 第25个python程序
- Learn Python The Hard Way学习(7) - 更多的打印
- 笨方法学Python 习题 7: 更多打印
- 笨方法学习Python-习题7:更多打印
- 笨办法学python习题7 更多打印
- 习题7 更多打印
- 习题7--更多打印
- 第2个python程序:注释#
- 第4个python程序:变量
- 第5个python程序:变量2
- 第10个python程序:转义
- 第11个python程序:接收输入
- 对象模型&模板
- LeetCode Restore IP Addresses(回溯法)
- 微软面试100题系列---求二叉树中节点的最大距离
- linux解压xxx.tar.bz2
- 选择语句
- 第7个python程序:更多打印
- 电话拨号盘T9搜索原理
- 数据结构上机测试2-1:单链表操作A
- 关于磁珠的用法
- 训练Faster R-CNN出现的errors
- 各类行业代码
- 正则表达式,用理解代替记忆(基于Perl)
- HDU 5835 Danganronpa(贪心)
- Python单例模式的4种实现方法