而字串,則較為特別,有兩種不同的表示法。 一些範例:. >>> >>> s = 'Hello, world.' >>> str(s) 'Hello, world.' >>> repr(s) "'Hello, world.'" >>> str(1/7) ...
確定! 回上一頁