#1216. python-错误和异常-ValueError(值错误)和TypeError(类型错误)进行异常处理....

python-错误和异常-ValueError(值错误)和TypeError(类型错误)进行异常处理....

Background

Description

python-错误和异常-ValueError(值错误)和TypeError(类型错误)进行异常处理.... 无限循环,遇到0退出。

Format

Input

Output

Samples

a
b
abcdefg
9
abc
0
value error
abcdefgabcdefgabcdefgabcdefgabcdefgabcdefgabcdefgabcdefgabcdefg
type error
abcdefg
10
abc
0
abcdefgabcdefgabcdefgabcdefgabcdefgabcdefgabcdefgabcdefgabcdefgabcdefg
type error

Limitation

1s, 1024KiB for each test case.