自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

EvansChang

一个逗逼的Gopher,我只是做做笔记,你们别当真

  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 LeetCode题解(Golang实现)--Median of Two Sorted Arrays

题目There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1:nums1 = [1, 3]nums

2017-08-30 11:27:52 504

原创 LeetCode题解(Golang实现)--Longest Substring Without Repeating Characters

题目Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b", with the

2017-08-30 10:16:59 562

原创 LeetCode题解(Golang实现)--Two Sum

题目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 e

2017-08-28 17:07:39 658

原创 LeetCode题解(Golang实现)--Add Two Numbers

题目You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return

2017-08-28 16:34:40 1137 2

原创 Go语言学习笔记-并发

并发与并行的区别:区别: 1. 并发:☞逻辑上具备同时处理多个任务的能力,指的是多个任务在同一时间段执行而不是同一时刻 2. 并行:☞物理上同一时刻执行多个任务goroutine:goroutine像一个多线程和协程的综合体,运行时会创建多个限制来执行并发任务,且任务单元可调度到其他线程并行执行,最大限度提升执行效率。go关键字go println("hello world")g

2017-08-23 14:56:29 507

原创 mac os 下pip安装的权限问题解决方案

最近将我的mac系统重装了,并升级到了最新版本,然后使用python写点小玩意练习下,然而我又太懒,懒得去装python3,就使用系统自带的python2.7.10。原本以为会一切都很顺利,然而我还是图样图森破,在我装twilio扩展的时候,问题就来了~~~知识点我一脸兴奋的等待pip跑完安装流程,然而系统在最后给我赖了盆冷水:Operation not permitted。我一脸懵逼,我明明带了s

2017-08-12 23:38:00 4377

翻译 Reflect in PHP(PHP中的反射机制)

原文链接 by Patkos Csaba18 Apr 2013 反射通常被定义为一个程序在执行的时候自我检查和修改自身的逻辑的能力。用较少的专业术语来说,反射就是让一个对象告诉你它自身的属性与方法,并改变哪些成员(即使是私有的)。在这一课,我们将会升入了解是如何实现的,以及何时可能证明是有用的。简史在编程时代的初期,只有汇编语言。用汇编语言编写的程序驻留在电脑的物理寄存器中。通过读取寄存器,可以随

2017-08-09 12:58:38 397

原创 python练习(二)--重命名文件

最近使用python做了点小练习,利用python对文件目录下的文件进行重命名,去除文件名中所有的数字,内容非常简单,了解python的人请略过实现步骤step1:获取文件目录下所有文件的文件名step2将当前工作目录切换到指定目录step3获取新为文件名step4更改文件名实现代码import osdef rename_files(): dir_path = r"/Users/evans

2017-08-08 23:52:49 514

原创 python练习--休息一下小程序

最近使用python做了点小练习,利用python写一个定时提醒自己起来运动的小程序,内容非常简单,了解python的人请略过实现步骤step1:监听时间倒计时2小时step2打开浏览器播放指定音乐step3循环前两个步骤实现代码import webbrowserimport timetotalBreaks = 3breakCount = 0print ("This program start

2017-08-08 22:56:50 625

空空如也

空空如也

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

TA关注的人

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