#coding:utf-8
#object string 文字列オブジェクト
import time
import os
os.system("cleaar")
hello="hello world!"
print(type(hello),hello)
input("次へ")
a="今日は いい天気だから 散歩しましょう。"
b = '''
_.---._ /\\
./' "--`\//
./ o \ .-----.
/./\ )______ \__ \ ( help! )
./ / /\ \ | \ \ \ \ /`-----'
/ / \ \ | |\ \ \7--- ooo ooo ooo ooo ooo ooo
'''
c ="""
,,__
.. .. / o._) .---.
/--'/--\ \-'|| .----. .' '.
/ \_/ / | .' '..' '-.
.'\ \__\ __.'.' .' i-._
)\ | )\ | _.'
// \\ // \\
||_ \\|_ \\_
'--' '--'' '--'
"""
print(a)
print(b)
print(c)
#文字列とfor loop
#電子掲示板
#縦に表示
for x in a:
print(x)
time.sleep(1)
print("\n")
#横に表示
str1=""
for x in a:
str1 += x
print("\r"+str1,end="")
time.sleep(1)
print("\n")
#複数行文字列の表示
os.system("clear")
str = ""
for x in b:
str += x
print("\r\033[8A"+str,end="")
time.sleep(0.3)
print("\n")
os.system("clear")
str = ""
for x in c:
str += x
print("\r\033[11A"+str,end="")
time.sleep(0.3)
print("\n")