judge input type
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了judge input type相关的知识,希望对你有一定的参考价值。
#! /bin/bashwhile true;do
read -p "please input:" a
expr $a + 1 &> /dev/null
if [ $? -eq 0 ] ;then
echo "input is int."
else
echo "input is char."
fi
if [ $a == ‘q‘ ];then
break
fi
done
以上是关于judge input type的主要内容,如果未能解决你的问题,请参考以下文章
T^T online judge 1372其实这题题目这么短就是为了让你AK
typescript 不检查 Array.map 结果的类型吗?