Python 入門指南 5.0
exercise4207.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61 | <!DOCTYPE html>
<html>
<head>
<!-- 設定網頁編碼 -->
<meta charset="utf-8">
<!-- 設定標題列文字 -->
<title>Brython 練習</title>
<!-- 引入 Brython 程式庫 -->
<script src="https://cdn.jsdelivr.net/npm/brython@3/brython.min.js">
</script>
<script src="https://cdn.jsdelivr.net/npm/brython@3/brython_stdlib.js">
</script>
<!-- 引入 CSS 檔案 -->
<link href="exercise4201.css" rel="stylesheet" type="text/css"/>
<!-- 引入 exercise4308 程式 -->
<script type="text/python" src="exercise4310.py">
</script>
</head>
<body id="body" onload="brython()">
<h1>計算機</h1>
<p id="display">0
</p>
<table>
<tr>
<td class="cal"><input type="button" id="button1" value="1" /></td>
<td class="cal"><input type="button" id="button2" value="2" /></td>
<td class="cal"><input type="button" id="button3" value="3" /></td>
<td class="cal"><input type="button" id="button_add" value="+" /></td>
</tr>
<tr>
<td class="cal"><input type="button" id="button4" value="4" /></td>
<td class="cal"><input type="button" id="button5" value="5" /></td>
<td class="cal"><input type="button" id="button6" value="6" /></td>
<td class="cal"><input type="button" id="button_minus" value="-" /></td>
</tr>
<tr>
<td class="cal"><input type="button" id="button7" value="7" /></td>
<td class="cal"><input type="button" id="button8" value="8" /></td>
<td class="cal"><input type="button" id="button9" value="9" /></td>
<td class="cal"><input type="button" id="button_multiply" value="*" /></td>
</tr>
<tr>
<td class="cal"><input type="button" id="button0" value="0" /></td>
<td class="cal"><input type="button" id="button_dot" value="." /></td>
<td class="cal"><input type="button" id="button_equal" value="=" /></td>
<td class="cal"><input type="button" id="button_divide" value="/" /></td>
</tr>
</table>
<div class="back"><a href="exercise4202.html">回目錄頁</a></div>
</body>
</html>
<!-- 檔名: exercise4207.html
說明:《Python入門指南》的範例程式
網站: http://kaiching.org
作者: 張凱慶
時間: 2023 年 12 月 -->
|