自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

annalittlezhou的博客

努力上进ing~

  • 博客(17)
  • 收藏
  • 关注

原创 leetcode in python 680

Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome.Example 1:Input: "aba"Output: TrueExample 2:Input: "abca"Output: TrueExplanation: You c...

2018-03-31 00:31:28 373

原创 leetcode in python 121

Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), des...

2018-03-31 00:10:34 489

原创 leetcode in python 125

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a car" is not a palindro...

2018-03-28 23:23:49 208

原创 leetcode in python 543

Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longestpath between any two nodes in a tree. This path may or may no...

2018-03-28 23:18:49 306

原创 MongoDB与python连接及读取信息

# -*- coding: utf-8 -*-__author__ = 'zww'import pprintfrom pymongo import MongoClientfrom bson import json_util as jsonbimport jsonimport csvclient = MongoClient('localhost', 27017)db = clie...

2018-03-23 16:22:52 2521

原创 UCB CS61B learning

homework1-1package hw1;/* OpenCommercial.java */import java.net.*;import java.io.*;import java.util.*;/*package for Arraylist/** A class that provides a main function to read five lines of a ...

2018-03-20 23:04:54 950

原创 JAVA学习

Debug 1:The method printIn(String) is undefined for the type PrintStream.Solution 1:println不是printIn。Debug 2:Exception in thread "main" java.lang.Error: Unresolved compilation problem.Solution 2:packa...

2018-03-20 23:02:45 474

转载 软件测试学习

       一、测试内容  确定自己的测试对象是什么,一个软件,什么软件;或者一个模块,什么模块。准备需要测试的软件的需求规格说明书、原型交互图以及系统效果图等等一切和软件有关的需求文档;通过对这些需求文档进行分析总结,使测试人员能够很好的了解甚至是全面了解被测对象的所有功能点以及需求点;  二、使用场景  用户在什么情况下会使用该软件或者模块,期望达到什么效果,用户关注什么。测试人员需要在测试...

2018-03-18 16:04:12 284

原创 安装MongoDB以及可视化工具adminmongo后的启动过程

1、如果配置了windows服务,并加入了环境变量,则直接打开cmd,输入net start MongoDB,就可以启动MongoDB。2、进入git clone后的本地adminmongo文件夹,开启git bash或cmd,输入npm start,就可以启动adminmongo,登入http://127.0.0.1:1234,就可以管理数据库。...

2018-03-11 23:23:14 2030

原创 MongoDB安装配置问题汇总

问题一:mongodb dbpath一直显示连接端口            解决方法:服务器已经启动,可重开一个cmd继续操作,浏览器输入:localhost:27017,显示正常。问题二:net start MongoDB显示net不是内部或外部命令            解决方法:将C:\Windows\System32路径加入系统变量。问题三:net start MongoDB显示服务没有响...

2018-03-10 21:14:13 441

原创 leetcode in python 257

Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths are:["1->2->5", "1->3"]关键词:二叉树,节点类型时间自由度:O(nlo...

2018-03-07 11:27:09 327

原创 leetcode in python 278

You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the...

2018-03-07 10:46:21 188

原创 leetcode in python 67

Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".关键词:对列表中的元素进行类型转换并连接时间自由度:O(n)# 2016-03-27 294 tests, 64 msclass Solution(object): def a...

2018-03-02 20:37:11 333

原创 leetcode in python 283

Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after calling your func...

2018-02-27 21:52:16 216

原创 leetcode in python 1

Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same el...

2018-02-26 18:19:35 176

原创 多维列表排序、文件夹遍历、python列表字典csv读取

多维列表排序:先根据第一列排序,然而第二列,然后第三列import operatoralist=[[],[],[],[]]alist.sort(key=operator.itemgetter(0,1,2))遍历文件夹下的文件import os path = "D:/Python34/news" #文件夹目录 files= os.listdir(path) #得...

2017-11-20 23:29:07 1039

原创 第一个简单的python爬虫:爬取ATP男子网球世界排名

#Tennis.pyimport requestsfrom bs4 import BeautifulSoupimport bs4def getHTMLText(url): try: r = requests.get(url, timeout=30) r.raise_for_status() r.encoding = r.appare...

2017-03-19 00:18:16 1084

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除