🌈 搜索
📅  最后修改于: 2022-03-11 14:46:13.442000             🧑  作者: Mango
x = 10 if isinstance(x, int) == True: print("x is a integer") if isinstance(x, str): print("x is a string")