自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

转载 LeetCode #1

class Solution:    def twoSum(self, nums, target):        k = 0#In fact, there is two loops which are used to find two numbers whose sum is target.        for i in nums:            j = target - i     ...

2018-05-03 20:36:50 100

原创 LeetCode #4

def median(A, B):    m, n = len(A), len(B)    if m > n:        A, B, m, n = B, A, n, m    if n == 0:        raise ValueError    imin, imax, half_len = 0, m, (m + n + 1) / 2    while imin <= imax...

2018-04-29 16:14:18 105

原创 LeetCode #19

# Definition for singly-linked list.# class ListNode:#     def __init__(self, x):#         self.val = x#         self.next = Noneclass Solution:    def removeNthFromEnd(self, head, n):        dummy = ...

2018-04-28 08:40:28 98

原创 Chapter 8 homework

8.1def what_i_learned(): print("How to type a function.")what_i_learned()8.2def what_i_learned(language): print("My favorite language is :",language)what_i_learned('python')8.5def decribe_ci...

2018-04-02 10:27:28 111

原创 Chapter 7 Homework

7.1car = input("What kind of car you'd like to rent : ")print("let me look if I kind find",car,"for you .")7.2people = input("How many people : ")people = int(people)if people > 8: print("So...

2018-04-02 09:31:47 210

原创 Homework chpater 6

6.1Yousef = {"frist name": "Yousef","last name" : "Almesbahi","Height":"175","city":"Guangzhou"}for info in Yousef : print (info," is ",Yousef[info].title())6.

2018-04-02 09:07:04 156

原创 Homework chapter 5

5.1pets = {"Cat","Dog","Lion"}for pet in pets: if pet == "Cat": print("This pet is so cute") if pet == "Dog": print("I like your pet.") if pet == "Lion

2018-04-02 08:33:13 122

原创 Homework chapter 4

4.1import syspizzas = ["Cheese","Vegi","Chicken"]for pizza in pizzas : print ("I really like",pizza , "pizaa.")print("Actually I like all kind of pizaa")4.2import sysanimals = ["C

2018-03-19 08:11:57 166

原创 Homework chapter 3

3.1names = ['Ali','Ahmed', 'Abdu']print(names[0])print(names[2])print(names[1])3.2names = ['Ali','Ahmed', 'Abdu']for name in names: print("Hello " + name)3.3cars = ["Honda","Toyota","Ferrari"...

2018-03-13 19:53:35 149

原创 Chapter 2 homework

2.1 2.2  name = "Yousef"print(name) name = "Yousef Almesbahi"print(name)2.3name = "Eric"print("Hello ",name, " ,would you like to learn some Python today?")2.4import sysname = "Yousef"p

2018-03-10 19:49:53 160

原创 Python Homework

Today I'm so familiar with Python language and due to the problem we are facing in life where we have a lot of slow and heavy programs, so I'm planning to change the way of the way we type our codes a...

2018-03-05 17:45:56 173

空空如也

空空如也

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

TA关注的人

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