#MySQL for Python(MySQLdb)
Note#切记不要在python中创建表,只做增删改查即可。#步骤:(0)引用库 -->(1)创建连接 -->(2)创建游标
-->(3)选择数据库 -->(4)执行语句 -->(5)关闭连接#(0)引用库import MySQLdb#(1)创建...
分类:
数据库 时间:
2014-05-19 09:34:15
阅读次数:
413
【题目】
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will ...
分类:
其他好文 时间:
2014-05-18 18:48:03
阅读次数:
269
Given two numbers represented as strings,
return multiplication of the numbers as a string.Note: The numbers can be
arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-05-18 01:25:07
阅读次数:
288
Two elements of a binary search tree (BST) are
swapped by mistake.Recover the tree without changing its structure.Note:A
solution using O(n) space is ...
分类:
其他好文 时间:
2014-05-17 14:45:17
阅读次数:
290
Two elements of a binary search tree (BST) are
swapped by mistake.Recover the tree without changing its structure.Note:A
solution using O(n) space is ...
分类:
其他好文 时间:
2014-05-17 11:30:21
阅读次数:
247
死循环while :do# do somethingdone
分类:
其他好文 时间:
2014-05-16 06:16:36
阅读次数:
227
转自:http://www.xinotes.net/notes/note/261/ 1 2 3
10 11 12 Try close this window.13 学习一下~!~
Single Number II
Total Accepted: 14472 Total
Submissions: 44420My Submissions
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Y...
分类:
其他好文 时间:
2014-05-15 01:23:42
阅读次数:
273
Given two numbers represented as strings,
return multiplication of the numbers as a string.Note: The numbers can be
arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-05-14 23:11:14
阅读次数:
398
所需jar包:bean: 1 package com.myspring.bean; 2 3
public class User { 4 private String id; 5 private String name; 6 7 public
String getId() ...
分类:
编程语言 时间:
2014-05-14 08:55:20
阅读次数:
364