PCDVD數位科技討論區
PCDVD數位科技討論區   註冊 常見問題 標記討論區為已讀

回到   PCDVD數位科技討論區 > 其他群組 > 疑難雜症區
帳戶
密碼
 

回應
 
主題工具
dukekim
Major Member
 

加入日期: May 2001
您的住址: 公司宿舍
文章: 207
Question 會寫 python 的高手大大請進....

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

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

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

懇求答案...

感恩!
     
      
舊 2016-01-09, 03:12 AM #1
回應時引用此文章
dukekim離線中  
sparc10
Junior Member
 
sparc10的大頭照
 

加入日期: Jun 2003
您的住址: CC BY-NC-ND 4.0授權
文章: 797
引用:
作者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
 

此文章於 2016-01-09 11:10 AM 被 sparc10 編輯.
舊 2016-01-09, 11:07 AM #2
回應時引用此文章
sparc10離線中  
dukekim
Major Member
 

加入日期: May 2001
您的住址: 公司宿舍
文章: 207
Smile

引用:
作者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


謝謝您!
__________________
毀滅公爵
dukekim888 (at)gmail (dot) com
舊 2016-01-09, 03:26 PM #3
回應時引用此文章
dukekim離線中  


回應


POPIN
主題工具

發表文章規則
不可以發起新主題
不可以回應主題
不可以上傳附加檔案
不可以編輯您的文章

vB 代碼打開
[IMG]代碼打開
HTML代碼關閉



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


vBulletin Version 3.0.1
powered_by_vbulletin 2025。