ソースコード
#cooding:utf-8
#object stryng 文字列オブジェクト
import time
import os
os.system("clear")
hello="hello world!"
print (type(hello),hello)
input("次へ")
a="九州一周旅行に行きたいよおおお"
print(type(a),a)
b="""
...dHN.,
` ` ` ` ` ` ` `.@@@@@@@N. ` ` ` ` ` ` ` ` ` ` ` ` ` ` `
. .M@H@@H@@@N. (N,
` ` ` ` .g`.@@NH@@@H@@H@HMMM@MgH@@M ` ` ` ` ` ` ` ` ` ` `
` (@@hgMMMMMMM@H@@MM@@@H@@@@@M:
` .Na-@@@@@@@@@MM@@@M@@@@@@H@HY` . ` ` ` ` ` `
` H@@MMM@@HM@M@@@@H@M@MMMH@@@@H@HNH= ` ` ` `
` ._TWMM@[ .@@MMMMMMMM@M@@H@@@@@Mg. `
` ` (M, O@MM\ ,M@@@@@MM@@HH@@H@@H@@@x ` ` ` ` ` ` ` ` `
` .U@n.g@M... ?M@@@@@@@@@MM@M@@@HM@@t `
,@@Y"(@@M- `H@H@@H@@MMMMMMMMM@B` `
` ` ` ` ,#^ ?H"! .dYH@@H@HM@@@@@@@@M= ` ` ` ` ` ` ` `
` ! .+, .. .@@@@@MM@@HH@H@@H! ` `
` J@@FWW= HH@H@@@M@@@@@@HM' ` ` ` ` ` ` ` ` ` `
` ` ` `d@Y` .@@@@H@@@MH@@H@@t `
` ` "' .@@MM@@@H@MM@@H@@# ` ` ` ` ` `
` ` jH@H@@@HMMHM@@@@@@H@: ` ` ,___________` ` `
` ` ` .H@@H@@@@MM@@@H@H@@F ` ,` `
` ` `.@H@@H@@@@@M@@@H@@@] ` ,! ` ` ` ` ` `
` ` ` ,M@@@HY7H@@MM@@@H@| ` ` ,! `
` ` M@@M(..@@@H@M@@#\ . ` ` ` , ` ` ` `
` ` ` d@HN!??@@H@@HH@@% ` . ..JF `
` ` ` 4H@@@@| w@@H[ .7"! . ` .d" ` ` `
` ` BYY"HN, (@@@H{ ` ` . ` .F` ` ` `
.7!.@H#^ . (^
"""
print(type(b),b)
c="""
/\ /\ ヘ⌒ヽフ/../
/ /\ \(・ω・ )./
())ノ__ ○二○二⌒/../
/ /||(二ニ) (___/../ 几l
γ ⌒ /|Ⅲ||彡Vミ/⌒ _ノ二二ノl0
l|(◎).|l |((||((゚ )/⌒/||三三三・) || (´⌒(´
__ ゝ__ノ  ̄(___) ̄ ゝ__ノ≡≡≡(´⌒;;;≡≡≡
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄(´⌒(´⌒;;
"""
print(type(c),c)
#文字列とfor loop
#電子掲示板
#縦に表示
str1=""
for x in a:
print(x)
time.sleep(1)
print("\n")
input("次へ")
#横に表示
str1=""
for x in a:
str1 += x
print("\r"+str1,end="")
time.sleep(1)
print("\n")
input("次へ")
#複数行文字列の表示
os.system("clear")
str = ""
for x in b:
str += x
print("\r\033[8A"+str,end="")
time.sleep(0.1)
print("\n")
os.system("clear")
str = ""
for x in c:
str += x
print("\r\033[11A"+str,end="")
time.sleep(0.1)
print("\n")