原创 C#調用webservice

假設A是客戶端,B是webservice服務端,用戶通過http協議向服務器發送soap請求,webservice返回客戶端XML格式的數據。   現在我們看一看創建一個webservice的大致過程:    服務端的webser

原创 pythonic examples

pythonic examples 文章分類:Python編程   1. 百分號的使用: 通常我們都是這樣格式化字符串的:   Python代碼 print   'hello world programme by %s'

原创 c#實現資源瀏覽器

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u

原创 C#streamwriter寫文件

using System;using System.IO;class Test {public static void Main() {string path = @"c:/temp/MyTest.txt" ;/

原创 C#TreeView顯示本地資源

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u

原创 python中使用getopt

在運行程序時,可能需要根據不同的條件,輸入不同的命令行選項來實現不同的功能。目前有短選項和長選項兩種格式。短選項格式爲"-"加上單個字母選 項;長選項爲"—"加上一個單詞。長格式是在Linux下引入的。許多Linux程序都支持這兩種格式。

原创 python文件讀寫

文件的讀寫   一、文件打開: f = file(name[, mode[, buffering]]) 入口參數:   name 文件名                   mode   選項,字符串           

原创 C#的checkedlistbox刪除操作代碼

/*int count=checkedListBox1.CheckedItems.Count;  for (int i=0;i<count;i++) {      heckedListBox1.Items.Remove(checkedL

原创 C#接收郵件函數

public void ConnectToServer(NetworkStream ns,StreamReader sr,string serverName,string serverPassword)         {        

原创 C#smtp發送郵件

MailMessage mail = new MailMessage();             mail.Subject = toAddress.Text;             mail.From = new MailAddres

原创 python寫的統計PYTHON文件的(代碼行數,空行數,註釋行數)小程序

#-*-coding:utf-8-*- import os if __name__=='__main__':     codeline=0     expline=0     blankline=0     filename=raw_in

原创 MySql 基本操作

MySQL數據庫的基本操作命令 ========================= 一、mysql服務操作 1、service mysql start //啓動mysql服務 2、service mysql stop//停止mys

原创 利用urllib下載圖片

ubuntu查找文件:  sudo find / -name sources.list   實現圖片下載   import  urllib   url = r"http://www.javaeye.com/images/logo.

原创 c#實現的音頻入庫

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u

原创 c#連接sqlite數據庫

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SQLite; namespa