自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 MIT6001x_Review_Lec3_Loops, Strings, Guess-and-Check, Approximation, Bisection

strings a sequence of case-sensitive characters can compare: ==. <, >, <=, >= >>> 'a' < 'b' True ## alphabetic order len() aStr[ ] indexing and slicing immutable Quesiont: Finding the cube root(三次方根)of a number. Approximate

2020-07-18 12:10:58 163

转载 编程入门指南 v1.5

https://zhuanlan.zhihu.com/p/19959253 这篇文章是写给那些真心想学编程的人看的——那些憋着一股狠劲儿,一定要做出个什么真东西,不学好不罢休的人;而不是那些「听说编程好玩」的人,在我看来,这种人永远都入不了编程的门,更别提做出个像样的东西来了。 心态调整 确定目标 在你学习编程之前思考一下你的目标,当你有最终目标时道路会更加的清晰。那么,你想要写什么?网站?游戏? iOS 或者 Android 应用?或是你是想自动化完成一些乏味的任务让你有更多的时间看窗外的风景?也许你只是

2020-07-16 16:12:10 151

原创 return +判断列表A包含列表B的所有元素

Return def fun1(): return x = 1 SyntaxError: invalid syntax def fun1(): x = 1 return x Decide whether all the elements of List A are in List B listA = [1, 2, 3] listB = [1, 2, 3, 4] listB contains listA listA = [1, 2, 3] listB = [1, 2, 3, 4]

2020-07-16 12:06:38 427

原创 复制词典与列表

when copying a dict: aDict.copy() if you try to use aDict[:] TypeError: unhashable type: ‘slice’ Python definition of Hashable is: An object is hashable if it has a hash value which never changes during its lifetime (it needs a hash() method). A list is

2020-07-16 11:49:42 139

空空如也

空空如也

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

TA关注的人

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