连击 天
fork: star:
简历中英文 --------ok 排序算法-----ok 设计模式----ok 二叉树遍历算法---ongoing 多线程,IO,集合面试题 Mysql调优,JVM调优 MangDB,redis,soa...
创建PSXDMS data model 利用CQL创建data model, DDL如下: DROP KEYSPACE dm3; CREATE KEYSPACE dm3 WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1...
创建线程两种方式 第一种,导入improt thread 模块,thread.start_new_thread(功能函数名称,(参数1,参数2...)) 后面参数为功能函数的参数 第二个方式类似于java,导入threading模块,继承t...
1,import MySQLdb module 2. 打开连接 db =MySQLdb.connect("localhost","testuser","test123","TESTDB" ) 3. 打开游标 cursor = db.cursor() 4. 执行sql cursor.execute("SELECT VER...
re.search(pattern,string,flag) 与re.match()不同,匹配整个字符串,match如果开始不匹配则返回none 2. re.sub替换 re.sub(pattern,replace,string) #!/bin/python import re #re.sub f...
1, 类的定义使用 #!/bin/python class Employee: def __init__(self,name): self.name=name def display(self): print(self.name) e...
if else形式 [nxuser@PSjamsBond-0-0-0 ~]$ vi testoperator.py #!/bin/python #operator testing number1=111 number2=222 if(number1>number2): print("num1>num2") else: ...
基本数据类型 Python有五个标准的数据类型: Numbers(数字) String(字符串) List(列表) Tuple(元组) Dictionary(字典) shell好像无明显的数据类型区分 Python支持四种不同的数值类...
其实和shell方式一样 vi helloworld.py 写逻辑代码,文件头: #!/bin/python chmod +x python helloworld.py
没有更多内容
加载失败,请刷新页面
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复