Imports System.NetImports System.IOPublic Class HttpDriverClass HttpDriver Public Function GetPage()Function GetPage(ByVal url As String, Optional ByRef postPara As String = "", Optional ByRef encType As String = "GB2312") As String Return
今天在寫開啟檔案對話方塊的代碼時,想對檔案類型進行限制,在JDK協助文檔中,提供了如下方法: JFileChooser chooser = new JFileChooser();// Note: source for ExampleFileFilter can be found in FileChooserDemo, // under the demo/jfc directory in the JDK. ExampleFileFilter filter = new
在values/styles.xml中加入下面內容<resources xmlns:android="http://schemas.android.com/apk/res/android"> <!-- Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on
從網上看到有一本書叫《千萬別恨數學》的書,是《千萬別學英語》的姊妹篇。作者是韓國尖端技術研究院的博士。他以前對數學反感之極,大學的時候為了賺生活費,開始做家教,輔導高中學生學數學。因為讀書的時間長,這種日子持續了十年,最後不僅成了名家教,而且成為了數學方面的高人。他這本書就是講述自己對於“如何學數學”這個問題的看法。 《千萬別恨數學》這個翻譯非常離譜,原文是《Don't Study Math Too Much》,應該翻譯成《數學,千萬別學過火》。
一次偶然的機會看見了睡眠排序,很有意思的一種排序演算法,可以說是對我們熟悉的正規排序的一種挑戰,是思想上的突破,有點像腦筋急轉彎。使用睡眠排序演算法,只能按照從小到大的順序排列。列印數組中的資料時,按照其大小sleep,這樣,數越大sleep的時間也就越長。所有的數同時進入sleep狀態,數比較小的會提前列印出來。近期使用的都是GO語言,對其並發也有了些許理解,所以,使用go語言來實現這種排序,是很不錯的選擇。// test project main.gopackage
時間過得真快,還記得今年3月1號剛剛來到學校開始準備參加資格審核的時候,到後來的通過審核,然後是報名參賽,最後是辦護照和Visa和明天啟程去美國.這一段時間過得非常辛苦. 這段時間雖說自己特別的辛苦,可是覺得很值得.畢竟這是我第一次出國,第一次坐飛機,第一次靠我一個人辦了那麼多的事情.這讓我感覺自己長大了.而且這一段時間都有我的小娜娜一直陪伴著我.給了我莫大的協助.所以我覺得這段時間雖然辛苦,可也是甜蜜的.也許這就是人們所說的The Power Of Love吧.
ProblemA cyclic number is an integer n digits in length which, when multiplied by any integer from 1 to n, yields a ��cycle�� of the digits of the original number. That is, if you consider the number after the last digit to ��wrap around�� back to