2020-01-10 14:20:54 Python

14-3.py

Copy Copied! Full
def delnum(str1): for char in str1: if char =="0": print("",end="") elif char =="1": print("",end="") elif char =="2": print("",end="") elif char =="3": print("",end="") elif char =="4": print("",end="") elif char =="5": print("",end="") elif char =="6": print("",end="") elif char =="7": print("",end="") elif char =="8": print("",end="") elif char =="9": print("",end="") else: print(char,end="") print() str1 ="T2s3u6ki9 n3o4 h9i8ka5ri ni3 4t1er3a7sa8re7ru to02ki m18ic2hi h5a h6i9rak0a9r02en" print("石版に何やら文字が書かれている。") print(str1) print("デルナムを唱えた!") print("なんと石版から数字が取り除かれていく!") delnum(str1)
14-3.py
RECOMMEND