An object is a string if it has the type str. sample_text = "Hello" if isinstance(sample_text, str): print('Type of variable is a string') else: ...
確定! 回上一頁