原创 關鍵字void

  函數若定義爲void類型,則其不返回任何值,函數中沒有return語句。函數執行完後即會自動返回至調用函數的語句處繼續執行程序。

原创 eclipse + Pydev + Python

1,下載Pydev插件http://sourceforge.net/projects/pydev/files/。解壓,把相應文件的內容拷貝到eclipse下。 2,啓動eclipse,Window --->  preferences -

原创 關於TreeView問題

  在TreeView顯示兩條滾動軸的時候,兩條軸相交的Corner跟滾動軸背景顏色不一致的問題。 https://stackoverflow.com/questions/12373248/annoying-square-where-s

原创 JDBC基礎

</pre><p>java.sql.SQLSyntaxErrorException: ORA-00928: 缺失 SELECT 關鍵字</p><p></p><p><pre name="code" class="java">import j

原创 myeclipse

  用myeclipse寫jsp文件時,不能自動縮進。 點贊 收藏 分享 文章舉報 mnotwo 發佈了35 篇原創文章 · 獲贊 2 · 訪問量 1萬+ 私信

原创 bbs

Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6

原创 Python

False Traceback (most recent call last):   File "Hello.py", line 9, in <mo

原创 Python代碼

1,生成隨機數 import random rnd = random.randint(1, 100)#生成1~100之間的隨機數 點贊 收藏 分享 文章舉報 mnotwo 發佈

原创 計算1~100的和

計算1~100的和。 s = sum(range(1, 101)) print s print type(range(1,3)) s = 0 for i in range(1, 101): s = s + i print s s

原创 HelloWorldServlet

type Exception report message Error instantiating servlet class HelloWorldServlet description The server encountered an

原创 如何在一個函數內修改一個全局變量

如何在一個函數內修改一個全局變量 a = 1 def add(): global a a = a + 1 print a add() 點贊 收藏 分享 文章舉報

原创 求兩個整數的最大公約數和最小公倍數

求兩個數的最大公約數和最小公倍數 # -*- coding: utf-8 -*- x = int(raw_input(r'請輸入一個正整數:')) y = int(raw_input(r'請輸入一個正整數:')) def hcf(

原创 python

SyntaxError: (unicode error) 'utf8' codec can't decode byte 0xbe in position 0: invalid start byte 把Notepad++改爲  以UTF-

原创 <wpf>關於TreeView問題

  在TreeView顯示兩條滾動軸的時候,兩條軸相交的Corner跟滾動軸背景顏色不一致的問題。 https://stackoverflow.com/questions/12373248/annoying-square-where-s

原创 去除連續空格,並保留一個空格

1,首先去掉收尾空格。 2,去掉中間連續空格,並保留一個空格。