PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   疑難雜症區 (https://www.pcdvd.com.tw/forumdisplay.php?f=34)
-   -   會寫 python 的高手大大請進.... (https://www.pcdvd.com.tw/showthread.php?t=1096129)

dukekim 2016-01-09 03:12 AM

會寫 python 的高手大大請進....
 
會寫 python 的大大,可以給我底下二題的答案嗎?我在唸進修部、這堂選修課真的都聽不懂...

一、各舉一個例子說明每個方法或內建函數的用途:
1. 內建函數:input(), print(), sorted()
2. 清單物件:append(), extend(), sort()
3. 字串物件:split(), strip()

二、各舉一個例子說明每個資料型態的區別(需包含有無順序、可不可更改的特性),清單(list)、元組(tuple)、字典(dictionary)、集合(set)。

懇求答案... :ase

感恩! :)

sparc10 2016-01-09 11:07 AM

引用:
作者dukekim
會寫 python 的大大,可以給我底下二題的答案嗎?我在唸進修部、這堂選修課真的都聽不懂...

一、各舉一個例子說明每個方法或內建函數的用途:
1. 內建函數:input(), print(), sorted()
Python 3.1 快速導覽 - 內建函數 input()
http://pydoing.blogspot.tw/2011/02/python-input.html

Python 3.1 快速導覽 - 內建函數 sorted()
http://pydoing.blogspot.tw/2011/02/python-sorted.html

Python 3.1 快速導覽 - 內建函數 print()
http://pydoing.blogspot.tw/2011/02/python-print.html

其他問題,請自行查詢 "Python 3.1 快速導覽 - 目錄"
http://pydoing.blogspot.tw/2010/12/python-overview.html

dukekim 2016-01-09 03:26 PM

引用:
作者sparc10
Python 3.1 快速導覽 - 內建函數 input()
http://pydoing.blogspot.tw/2011/02/python-input.html

Python 3.1 快速導覽 - 內建函數 sorted()
http://pydoing.blogspot.tw/2011/02/python-sorted.html

Python 3.1 快速導覽 - 內建函數 print()
http://pydoing.blogspot.tw/2011/02/python-print.html

其他問題,請自行查詢 "Python 3.1 快速導覽 - 目錄"
http://pydoing.blogspot.tw/2010/12/python-overview.html


謝謝您! :)


所有的時間均為GMT +8。 現在的時間是04:21 AM.

vBulletin Version 3.0.1
powered_by_vbulletin 2025。