學術及資源的交流園地 ^_^

05. flow control

最後更新: 2016-01-07

目錄

  • if
  • except
  • for
  • while
  • range() and xrange()

Eclipse 與 PyDev

 

 

Eclipse Version:

Kepler Service Release 2

PyDev:

http://pydev.org/download.html

Latest Version: 2.7.0(18 October 2012)

支援:

Eclipse (3.2 to 3.8/4.2)

 

02. String 操作

最後更新: 2020-02-10

介紹

String 是 built-in class 來, Class 名叫 str

immutable 的特性

 

目錄

  • 合併字串
  • " 與 '
  • """ 與 '''
  • \ 續行
  • raw string
  • 數字轉成 string
  • Slicing 與 Indexing
  • unicode
  • String Function
  • String attribute
  • Placeholder
  • Encode  與 Decode
  • ascii type()
  • newline char
  • remove newline in string
  • check empty line
  • print without newline
  • StringIO

 

01. python 入門

最後更新: 2018-10-12

目錄

  • 查看系統上 python 的 version
  • 進入 Shell 與 comment "#"
  • Shell 內 hotkey
  • Script File
  • Function
  • *t 與 **d
  • Modules
  • Class
  • Input 與 raw_input
  • exec 與 eval
  • Code 內有中文
  • assert
  • enumerate
  • yield
  • underscore "_"
  • _X __X __X__
  • __future__
  • Assert
  • Type casting(Conversion)
  • Troubleshoot

 

RSS feed