day2_python基礎之數值、字符串與列表

xmind 筆記 今日日記 今天學習了數值、字符串和列表的相關內容。之前也學過,這次就當時複習啦~ 有一些容易忘記的點,在這裏需要重複以下: ‘{0:2f}.format(3.33333)’ format用法 取整方法: math.floor 向左 math.trunc 往0 round 四捨五入 字符串的常用操作: .replace() .split(’’) .startswith(’’) .e
相關文章
相關標籤/搜索