Time of Update: 2015-05-08
幾個常見js面試問題整理,js面試整理 1.關於“+”和“-”中出現number類型時的轉換var a = '' + 3; //嘗試將3轉化為字串var b = 4;console.log(typeof a);console.log(a+b);console.log(a-b); //嘗試將字串轉化為numbervar foo = "11"+2+"1"; //體會加一個字串'1' 和
Time of Update: 2015-05-08
PHP單檔案上傳原理及上傳函數的封裝,//表單://0.php:<!doctype html><html><head><meta charset="utf-8"><title>無標題文檔</title></head><body><form action="000.php" method="post"
Time of Update: 2015-05-07
AngularJS學習(一),AngularJS學習( AngularJS 是一個為動態WEB應用設計的結構架構。它能讓你使用HTML作為範本語言,通過擴充HTML的文法,讓你能更清楚、簡潔地構建你的應用組件。它的創新點在於,利用 資料繫結 和 依賴注入,它使你不用再寫大量的代碼了。這些全都是通過瀏覽器端的Javascript實現,這也使得它能夠完美地和任何伺服器端技術結合。 AngularJS通過ng-directives來擴充HTML。 ng-app
Time of Update: 2015-05-08
VC Preprocessor definitions,preprocessor #include "stdafx.h"#include <stdio.h>#include <stdlib.h>int main(int argc, char* argv[]){#ifdef _SB printf("調用了sb\n");#elif _SB2 printf("調用了sb2\n");#else printf("Hello
Time of Update: 2015-05-08
3Sum Closest ——解題報告,3sumclosest 【題目】 Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input
Time of Update: 2015-05-08
UVA 1210 Sum of Consecutive Prime Numbers(數論),consecutiveprimeUVA - 1210Sum of Consecutive Prime NumbersTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionSome positive
Time of Update: 2015-05-08
hdu 1506 Largest Rectangle in a Histogram(求最大的矩形),hduhistogram1.注意要把a[]定義為LL,我在這裡wa了N次2.尋找邊界時,得用dp思想AC代碼:#include<cstdio>#include<cstring>#define LL long longusing namespace std;const LL INF=1<<60;LL a[100005];//要定義為LLint L[100005];
Time of Update: 2015-05-08
UVA11005 Semi-prime H-numbers(篩法),uva11005semi-primeUVA - 11105Semi-prime H-numbersTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionProblem A:
Time of Update: 2015-05-08
【BZOJ 3613】 [Heoi2014]南園滿地堆輕絮,bzojheoi2014 3613: [Heoi2014]南園滿地堆輕絮Time Limit: 50 Sec Memory Limit: 256 MB Submit: 167 Solved: 109 [Submit][Status][Discuss] Description小 Z 是 ZRP(Zombies’ Republic of Poetry,殭屍詩歌共和國)的一名詩歌愛好者,最近 他研究起了詩詞音律的問題。
Time of Update: 2015-05-08
LeetCode 27 Remove Element,leetcodeelement題目:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't matter what you leave beyond the new
Time of Update: 2015-05-07
python寫入中英文字串到檔案的方法 這篇文章主要介紹了python寫入中英文字串到檔案的方法,執行個體分析了Python操作中英文字串的技巧,非常簡單實用,需要的朋友可以參考下 python中如果使用系統預設的open方法開啟的檔案只能寫入ascii嗎,如果要寫入中文需要用到codecs模組,下面的代碼向 c:/1.txt檔案寫入 ”你好,指令碼之家 jb51.net“中文字串 ?
Time of Update: 2015-05-07
在Python中使用全域日誌時需要注意的問題 這篇文章主要介紹了在Python中使用全域日誌時需要注意的問題, 作者由uliweb使用時遇到的問題分析全域日誌出現錯誤時的解決方案,需要的朋友可以參考下 在使用 uliweb 開發 soap webservice 後,啟動 uliweb 時,werkzeug 的日誌莫名其妙丟失了。 正常的日誌: 代碼如下: [INFO] * Loading DebuggedApplication... [INFO] * Running
Time of Update: 2015-05-07
yate學習--yatengine.h--class YATE_API MessageReceiver : public GenObject,h5api 請聲明出處: MessageReceiver,這個類是一個訊息接受的基類:/** * A multiple message receiver to be invoked by a message relay * 多個訊息接收器調用訊息傳遞 * @short A multiple
Time of Update: 2015-05-07
hdu 3564 線段樹+dp(最大遞增子序列),hdu3564對於數列插空問題, 常用線段樹來處理,從後往前,因為後面的數的位置是不會改變的,對於i的位置 ,如果i位置上已經有數了,那麼就找i之後第一個空位,num【i】=k紀錄i所放的位置, 然後就按照hdu1025做法一樣了 ,#include<stdio.h>#include<string.h>#include<iostream>using namespace
Time of Update: 2015-05-07
pymongo給mongodb建立索引的簡單實現方法 這篇文章主要介紹了pymongo給mongodb建立索引的簡單實現方法,涉及Python使用pymongo模組操作mongodb的技巧,需要的朋友可以參考下 下面的代碼給user的user_name欄位建立唯一索引 ? 1 2 3 4
Time of Update: 2015-05-07
python使用xlrd模組讀寫Excel檔案的方法 這篇文章主要介紹了python使用xlrd模組讀寫Excel檔案的方法,較為詳細的分析了xlrd模組的安裝、使用與操作Excel檔案的相關技巧,需要的朋友可以參考下 一、安裝xlrd模組 到python官網下載http://pypi.python.org/pypi/xlrd模組安裝,前提是已經安裝了python 環境。 二、使用介紹 1、匯入模組 代碼如下: import
Time of Update: 2015-05-07
使用rpclib進行Python網路編程時的注釋問題 這篇文章主要介紹了使用rpclib進行Python網路編程時的注釋問題,作者講到了自己在編寫伺服器時要用unicode注釋等需要注意的地方,需要的朋友可以參考下 rpclib 是一個非常好用的 python webservice 庫,可以動態產生 wsdl, 不過這個項目已經基本停止,並被一個新的項目取代
Time of Update: 2015-05-07
使用wxPython擷取系統剪貼簿中的資料的教程 這篇文章主要介紹了使用wxPython擷取系統剪貼簿中的資料的教程,wxPython是一個非常受歡迎的Python圖形庫,需要的朋友可以參考下 涉及到開發傳統型程式,尤其是文本處理,剪貼簿就很常用,不像 java 中那麼煩鎖,wxpython 中訪問剪貼簿非常簡單,寥寥幾句足以。 ? 1 2 3
Time of Update: 2015-05-07
Java 容器 & 泛型:五、HashMap 和 TreeMap的自白,java容器Writer:BYSocket(泥沙磚瓦漿木匠)微博:BYSocket豆瓣:BYSocketJava 容器的文章這次應該是最後一篇了:Java 容器 系列。 今天泥瓦匠聊下 Maps。一、Map回顧 Map,又稱映射表,是將鍵映射到值的對象。有四種實現Map介面並且經常使用的Map集合為:HashMap,TreeMap,Hashtable 和
Time of Update: 2015-05-07
CentOS LiveCD LiveDVD DVD 等版本的區別 以及 最新版7.1下載,centoslivecdLiveCD 和 LiveDVD 是可以直接光碟片運行系統,但不能安裝,兩者差別在於容量大小,dvd包含的軟體要多一些。netinstall 是用於網路安裝和系統救援的鏡像檔案。minimal 這個鏡像檔案用於安裝一個非常基本的 CentOS系統,包含了一些基本所需的最小安裝包。DVD 鏡像檔案包含了完整的發布版,可以用於安裝完整的 CentOS 系統。CentOS 7.1