num = "abc" if isinstance(num, int): print('x 是一個整數')else: print('x 不是一個整數')
Standard input is empty
x 不是一個整數
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!