- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 【python学习手册】第23章模块包
写在前面,一些习题解答和自己想法习题解答 模块包目录内的__init__.py文件有何用途用于声明和初始化,当导入模块包时,会执行该文件内的代码每次引用包的内容时,如何避免重复包的完整路径使用from 语句可以缩短包的路径例如包dir1.dir2.dir3.foofrom dirr1.dir2.dir3 import foo引用的时候,可以只用foo的名称哪些目录需要init.py文件?包模块中每个
2016-03-22 17:39:58 540
原创 [LeetCode_PY] 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)).思路:方法一: 先做最笨的方法,两个列表
2016-03-14 17:21:35 377
Vim实用技巧
2016-10-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人