若在python中想要確認字串目前為str或unicode,可參考下列程式 if isinstance(s, str): print 'This is string.' elif isinstance(s, unicode): print ...
確定! 回上一頁