Font size
Worksheetspython測試
Total questions: 15
Worksheet time: 6mins
請問現在寫的語言怎麼拚
pythem
pythen
python
pythom
請問break用在for迴圈如何使用
暫停一回合
繼續
暫停全部
請問continue用在for迴圈如何使用?
暫停一回合
繼續
暫停全部
已知 x = 'Sandy' y = 'happy'
如何印出下列
Sandy happy
print(x+y)
print(x y)
print(x,y)
請問csv寫入有幾種寫法(在所教的課內)
3
2
4
請問下列會出現哪種執行結果
score = [80,98,50,60,74,66,53,60,80,32]
print(len(score))
11
10
12
list1 = [‘a’,’b’,’c’,’d’,’e’,’f’]
print(list1[ 2:5 ])
c d e
c d e f
b c d e
b c d e f
請問random.randint是?
隨機選列表元素的
隨機選數字的
今天下午教的class有幾類介紹
2
4
3
5
承上題,哪3類
實體物件
實體變數
實體函式
實體屬性
實體方式
有了實體物件,參數一定要有甚麼
(a)
下列何者會出錯
x = 5
print(y)
x = 5
y = '10'
print(x+y)
def n():
print("hello")
n(5)
請問散佈圖如何畫圖
plt.bar(x,y,c = 'r')
plt.plot(x,y,c = 'r')
plt.scatter(x,y,c = 'r')
請問長條圖如何畫圖
plt.scatter(x,y,c = 'r')
plt.bar(x,y,c = 'r')
plt.plot(x,y,c = 'r')
請問折線圖如何畫圖
plt.scatter(x,y,c = 'r')
plt.plot(x,y,c = 'r')
plt.bar(x,y,c = 'r')
