Python 提供了两个基本的 socket 模块:
Socket它提供了标准的BSD Socket API。SocketServer它提供了服务器重心,可以简化网络服务器的开发。
下面讲解下 Socket模块功能。
| 'SetupPivot: The following subroutine sets up a pivot table | |
| ' | |
| ' | |
| ' author: steven.henderson@usma.edu | |
| ' | |
| 'I received assitance from the following site: | |
| ' |
| -- user input - mode | |
| set mode to 2 -- (2 or 3 or 4) if mode is 2, pic1 and pic2 will be used | if mode is 3, pic1,pic2 and pic3 will be used. | |
| -- user input - pics | |
| set pic1 to "" | |
| set pic2 to "" | |
| set pic3 to "" | |
| set pic4 to "" | |
| -- end of user input | |
| if mode is greater than or equal to 2 then | |
| if mode is not greater than 4 then |
| #!/bin/bash | |
| cd /usr/local/src | |
| wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
| tar zxvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
| cd apps/sys-utils/start-stop-daemon-IR1_9_18-2 | |
| gcc start-stop-daemon.c -o start-stop-daemon | |
| cp start-stop-daemon /usr/sbin/ |
| <html> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <body> | |
| <?php | |
| echo "My Cloud App!<br>我的云应用。<br>"; | |
| echo $showtime=date("Y-m-d H:i:s"); | |
| echo "<hr>"; | |
| $filename="yjm.txt"; | |
| if (file_exists($filename)) |