---
# System prepended metadata

title: 個人第六堂課

---

# 個人第六堂課
``` python=
#使用畫圖套件 matplotlib.pyplot
import matplotlib.pyplot as plt
a=[1,2,3,4,5]
b=[1,2,3,4,5]

plt.scatter(x=a,y=b,s=100)
plt.axis('square')
plt.xlim(0,10)
plt.ylim(0,10)

print(f'我的圖形')

plt.show()
main()
```
``` python=
#使用畫圖套件 matplotlib.pyplot
import matplotlib.pyplot as plt
a=[1,2,3,4,5]
b=[1,2,3,4,5]

plt.scatter(x=a,y=b,s=5)
plt.axis('square')
plt.xlim(0,20)
plt.ylim(0,10)

print(f'我的圖形')

plt.show()
```
``` python=
#直方圖
import matplotlib.pyplot as pit
from numpy.random import normal, rand
x = normal (size=208)
plt.hist(x,bins=30)
plt. show()
```
``` python=
#字典字典
dic = {'BMW':666, 'AUDI':777}

print(dic['BMW'])
```
``` python=
# list 串列
# Tuple 集合
# Set 設集
# dict 字典
```

# 小組作業
:::success
題目

    dict = {
    “109213504”:“麥禮仁”,
    “110211049”:“稅正祺”,
    “110211003”:“林志宬”,
    “110251009”:“王博賢”,
    “110211026”:“洪權佑”,
    “110211012”:“黃玉柔”,
    “110211028”:“陳宜樺”,
    “110211016”:“林依嫻”,
    “110251027”:“郭姉祐”,
    “110251001”:“董哲安”,
    “110251002”:“高證鎰”,
    “110251049”:“陳昱慈”,
    “110251016”:“王麗婷”,
    “110251014”:“謝欣伶”,
    “110251044”:“王之賢”,
    “110211050”:“江柏逸”,
    “110211005”:“陳禹侖”,
    “110211018”:“楊凡寬”,
    “110211027”:“林昌興”,
    “110211047”:“趙梓豐”,
    “110211008”:“周芃君”,
    “110211004”:“鍾孝歆”,
    “110211025”:“黃巧瓈”,
    “110251008”:“陳韋蓁”,
    “110251010”:“劉姸希”,
    “110251050”:“鄭捷方”,
    “106213050”:“朱昱丞”,
    “110211040”:“陳亨毓”,
    “110251039”:“黃凱葶”,
    “110251035”:“溫嘉泓”,
    “110211052”:“林世鎧”,
    “110211034”:“洪橞䈶”,
    “110251043”:“許家維”,
    “110251040”:“陳柔云”,
    “110211013”:“顏庭茂”,
    “110251041”:“魏敏如”,
    “110251037”:“蔣水晶”,
    “110211046”:“何思雅”,
    “110211002”:“王敏甄”,
    “110251018”:“李佳臻”,
    “110211058”:“鄭宜蓁”,
    “110211030”:“劉昱岑”,
    “110211060”:“吳宜軒”,
    “110251030”:“溫瑩瑄”,
    “110211009”:“李佳蓁”,
    “110211037”:“粘伊萱”,
    “110211041”:“戚佩琳”,
    “110251029”:“廖韋茹”,
    “110211062”:“王郁亨”,
    “109211067”:“古宇立”,
    “108251026”:“許詠翔”,
    “110251020”:“王雅蓁”,
    “110251017”:“韓育欣”,
    “110251023”:“陳懷恩”,
    “110211032”:“郭芝榛”,
    “110211051”:“林秉楓”,
    “110251021”:“潘妘昕”,
    “110251019”:“林益任”,
    “110251051”:“王方琦”,
    “110251028”:“傅翊安”,
    “110211014”:“陳柏勳”,
    “110251003”:“陳千晴”,
    “110251004”:“翟品荃”,
    “110251013”:“江羽晴”,
    “110251012”:“陳玟伃”,
    “110251005”:“陳品蓉”,
    “110251026”:“王愉盛”,
    “110211031”:“江以薰”,
    “110211022”:“吳姿儀”,
    “110211007”:“譚厚誼”,
    “110211053”:“廖振羽”,
    “109251040”:“傅善鉑”,
    “110211036”:“葉平超”,
    “110211024”:“蕭逸韋”,
    “110211029”:“張彥程”,
    “110211061”:“陳柏揚”,
    “110211023”:“薛皓均”,
    “110211015”:“吳玗苀”,
    “110251015”:“吳依蓁”,
    “110251032”:“黃元泓”,
    “110251045”:“劉冠伯”,
    “110211011”:“黃翊喆”,
    “110211055”:“吳耀登”,
    “110251006”:“陳薏如”,
    “110251038”:“周宗永”,
    “110211063”:“陳玉珊”,
    “110251011”:“趙奕媗”,
    “110211033”:“蘇家陞”,
    “110251024”:“邱亮云”,
    “110251047”:“盧承徵”,
    “109105031”:“簡志安”,
    “109105030”:“陳柏揚”
    }
:::

:::warning
1.找出'麥禮仁'的學號
* 解答
for x , y in dict.items():
 if y == "麥禮仁":
  print(x,y)
  

:::

:::info
2.找出姓氏「陳」的學號與姓名
* 解答
for x , y in dict.items():
 if "陳" in y :
  print(x,y)
:::

:::warning
3."歡迎某某某同學參加我們的營隊活動"
* 解答
D = '歡迎'
E = '同學參加我們的營隊活動'
for x , y in dict.items():
  print(D,y[0:],E)
:::

:::info
4.找出所有的姓氏，可以用set
* 解答
for x , y in dict.items():
  print(y[0:1])
:::
