原创 hdu 1018 (Big Number)

Problem Description In many applications very large integers numbers are required. Some of these applications are

原创 hdu 2196(Computer 樹形dp)

A school bought the first computer some time ago(so this computer’s id is 1). During the recent years the school bo

原创 python 發送郵件

Python使用SMTP(簡單郵件傳輸協議)發送郵件 普通文本郵件 普通文本郵件發送的實現,關鍵是要將MIMEText中_subtype設置爲plain # -*- coding: UTF-8 -*- import smtplib

原创 nyoj 151 Biorhythms

描述 Some people believe that there are three cycles in a person's life that start the day he or she is born. These t

原创 0

2554456

原创 修改(python) mysql 數據庫 使其可以支持插入中文

先建立一個數據庫,名字叫xsk #!/usr/bin/python # -*- coding:utf-8 -*- import MySQLdb # 打開數據庫連接(本機,用戶,密碼,數據庫名) db = MySQLdb.connect(

原创 ubuntu 進入 pycharm(社區版)

先進入到pycharm所在的目錄,然後進入bin 然後./pycharm.sh 例如,我把pycharm 放在桌面上 su ➜ xushukui cd ‘/home/xushukui/桌面/pycharm’ ➜ pychar

原创 mysql創建和刪除表

創建表 簡單的方式 CREATE TABLE person ( number INT(11), name VARCHAR(255), birthday DATE ); 或者是 CREATE TABLE IF NOT EXISTS

原创 DDL和DML的定義和區別

DML(Data Manipulation Language)數據操縱語言: 適用範圍:對數據庫中的數據進行一些簡單操作,如insert,delete,update,select等. DDL(Data Definition Languag

原创 網頁製作中的超鏈接怎麼做

  超鏈接是任何一個網站必不可少的元素,可以說沒有超鏈接的網站甚至稱不上是一個網站,只能說是一個孤立的網頁。因此在網頁製作的過程中,我們必須瞭解超鏈接怎麼做?   超鏈接是html語言中的一個標籤,用 <a> 表示,由於html標籤均爲

原创 Python web 簡單服務器的搭建與運行

 搭建python的CGI環境: 假設在/var/www/cgi-bin下建立一個hello.py的文件 在ubuntu下打開終端 然後用命令 cd  /var/www/ 進入後執行命令 : python -m CGIHTTPS

原创 [Linux]常用命令與目錄全拼

命令縮寫: ls:list(列出目錄內容) cd:Change Directory(改變目錄) su:switch user 切換用戶 rpm:redhat package manager 紅帽子打包管理器 pwd:print work

原创 python requests的安裝與簡單運用(轉)

http://www.cnblogs.com/fightformylife/p/4134986.html http://cn.python-requests.org/zh_CN/latest/ http://cn.python-reque

原创 正則表達式基本語法詳解

http://www.jb51.net/article/73342.htm

原创 py thon 多線程(轉一篇好文章)

http://www.cnblogs.com/fnng/p/3670789.html