程式設計學習日誌與心得
第一週 | 第七週 | 第八週 | 第九週 |
2020/09/05,第一次上課。
看到劉任昌老師!我被他的外表嚇到!他長得超級帥,散發無敵魅力!說他是怪伯伯的人,一定是眼睛瞎掉,或是忌妒他!
第三次上課
利用表單,傳輸指令到 JavaScript
學習二進位與變數
ctx物件 的 字型 font . 後面接 屬性 properties 方法 method 物件導向設計 object-oriented programming design
學習條件式
IF (是不是豬頭)
{是豬頭,要進行的動作}
Else
{不是豬頭,要進行的動作}
從EXCEL(使用 dec2hex 與 dec2bin 命令)直接貼上
十進位 | 十六進位 | 二進位 |
decimal | hexadecimal | binary |
0 | 0 | 0 |
1 | 1 | 1 |
2 | 2 | 10 |
3 | 3 | 11 |
8 | 8 | 1000 |
9 | 9 | 1001 |
10 | A | 1010 |
11 | B | 1011 |
12 | C | 1100 |
13 | D | 1101 |
14 | E | 1110 |
15 | F | 1111 |
16 | 10 | 10000 |
18 | 12 | 10010 |
253 | FD | 11111101 |
254 | FE | 11111110 |
255 | FF | 11111111 |
第七週網頁命令與VBA命令比較
網頁指令 | VBA |
輸入資料: | |
輸入資料: <input type="text"> | textbox |
輸入數字: | |
輸入數字: <input id="b" type="number" /> | |
<input onclick="alert('你是三分頭大帥哥!')" type="button" value="放屁" /> | |
輸入密碼 | |
輸入密碼<input type="password" > | |
是否吃素: | checkbox |
是否吃素: <input type="checkbox" /> | |
豬狗貓 | |
豬<input type="radio" />狗<input type="radio" />貓<input type="radio" /> | |
豬狗貓 | |
豬<input name="pet" type="radio" />狗<input name="pet" type="radio" />貓<input name="pet" type="radio" /> | |
EXCEL VBA | |
Private Sub CommandButton1_Click() Dim addnew As Range '定義 變數 addnew 是工作表的一個範圍 If Range("A1").CurrentRegion.Rows.Count = 1 Then Set addnew = Sheets("DataTable").Range("A1").Offset(1, 0) Else Set addnew = Sheets("DataTable").Range("A1").End(xlDown).Offset(1, 0) End If addnew.Offset(0, 0).Value = TextBox1.Text '統一編號 addnew.Offset(0, 1).Value = TextBox2.Text '公司 addnew.Offset(0, 2).Value = TextBox3.Text '聯絡人 addnew.Offset(0, 4).Value = TextBox4.Text '地址 addnew.Offset(0, 3).Value = ComboBox1.Value '聯絡人職位 使用下拉式選單 ListBox1.ColumnCount = 5 '在清單方塊 ListBox1 顯示輸入的資料,5 columns ListBox1.RowSource = "A1:E65536" End Sub Private Sub CommandButton2_Click() End End Sub Private Sub UserForm_Initialize() ComboBox1.AddItem ("董事長") ComboBox1.AddItem ("總經理") ComboBox1.AddItem ("副總經理") ComboBox1.AddItem ("財務長") End Sub |
第八週2020/10/26
國庫券T-Bill,Treasury Bills, 美國財政部Department of the Treasury, 台灣財政部Administry of Finance
國庫券面額$ 天期貼現率 %
價格$(計算中)
參考李顯儀金融市場page 4-12
第八週2020/10/26
國庫券T-Bill,Treasury Bills, 美國財政部Department of the Treasury, 台灣財政部Administry of Finance
國庫券面額$ 天期貼現率 %
價格$(計算中)
參考李顯儀金融市場page 4-12
留言
張貼留言