首页 > 编程语言 >【笨方法学python】ex10 - 那是什么

【笨方法学python】ex10 - 那是什么

时间:2022-10-05 04:00:07浏览次数:54  
标签:python cat ex10 persian food print 方法学

代码如下:

点击查看代码
# -*-coding:utf-8- -*-
# 那是什么

tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split \non a line."
Backslash_cat = "I'm \\ a \\ cat."

fat_cat = """
I'll do a list:
\t* Cat food
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
"""

print tabby_cat
print persian_cat
print Backslash_cat
print fat_cat

print "\a" # 响铃符
print "\b" # 退格符
print "\f" # 进纸符

执行结果:
image

标签:python,cat,ex10,persian,food,print,方法学
From: https://www.cnblogs.com/TiramisuPS/p/16754968.html

相关文章