- 博客(5)
- 收藏
- 关注
原创 Selenium源码学习
1 existing_ld_lib_path = os.environ.get('LD_LIBRARY_PATH', '') 该语句是将名为LD_LIBRARY_PATH的环境变量赋予existing_ld_lib_path 2 shutil.copy(os.path.join(os.path.dirname(__file__), path,self.NO_FOCUS_LIBRARY_NAME
2016-03-31 19:27:15 1495
原创 python 冒泡排序
array=[22,33,44,11,2,45] for i in range(len(array)-1,0,-1): for j in range(0,i): if array[j]>array[j+1]: c=array[j+1] array[j+1]=array[j]
2015-03-25 11:36:04 252
原创 PYTHON 容器TIPS
TIPS: LIST: append()与extend()区别: a=[0,1,2,3] b=[4,5,6,7] a.append(b)=[0,1,2,3,[4,5,6,7]] a.extend=[0,1,2,3,4,5,6,7] DICT: 遍历字典为元组形式: a{'c':1,'b':2} for o in a.iteritems(): print o 遍历KE
2015-03-16 15:10:21 168
原创 关于构造函数与析构函数几点Tips
#include "stdafx.h" #include //头文件stock10 #ifndef STOCK10_H_ #define STOCK10_H_ class Stock{ int a; //声明2个私有(默认)变量 a,b int b; public: Stock(){a=2;b=3;}; //通过构造函数对私有变量赋初值,不写构造函数默认为系统自动构造一个空的构造函
2013-11-18 20:52:56 415
原创 关于 return 多个值的实现
1使用指针: 1.1返回int数组: #include "stdafx.h" #include #include using namespace std; //使用指针,返回一个填充好的数组; int *c(int a[]); int main() { int q[10]; int *w=c(q); for(int j=0;j<10;j++) cout<<*(w+j)
2013-11-13 19:04:19 699
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人