自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 第八周-Python-leetcode-hw2

题目485. Max Consecutive Ones解题思路代码题目485. Max Consecutive OnesGiven a binary array, find the maximum number of consecutive 1s in this array.解题思路遍历整个数组,用t计算连续的1的个数。如果遇到1,t加1;如果遇到...

2018-04-25 20:36:07 114

原创 第8周-Python-leetcode-hw1

题目26. Remove Duplicates from Sorted Array解题思路代码题目26. Remove Duplicates from Sorted ArrayGiven a sorted array nums, remove the duplicates in-place such that each element appear onl...

2018-04-25 20:31:17 131

原创 第六周-Python-hw

11-1 城市和国家11-2 人口数量11-3 雇员11-1 城市和国家代码#city_functionsdef city_country(city, country): return city.title() + ", " + country.title();#test_cities.pyimport unittestfrom city_...

2018-04-16 06:57:42 293

原创 第五周-python-hw2

10-1 Python学习笔记10-3 访客10-7 加法计算器10-1 Python学习笔记代码#读取整个文件打印with open('learning_python.txt') as file_object: contents=file_object.read() print(contents)#遍历文件对象打印with open('...

2018-04-07 14:35:53 200

原创 第五周-python-hw1

作业9-1 餐馆9-6 冰淇淋小店9-10 导入Restaurant类9-14 骰子作业9-1 餐馆创建一个名为Restaurant的类,包括restaurant_name和cuisine_type属性,describe_restaurant()和open_restaurant()方法代码class Restaurant(): """...

2018-04-07 14:01:13 181

空空如也

空空如也

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

TA关注的人

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