摘要:
/** * 数组实例:猜数字 */package 数组;import java.util.Scanner;import java.util.Random;//生成伪随机数public class Test05 { public static void main(String[] args) {// 阅读全文
摘要:
Mysql 索引优化分析 MySQL索引优化分析 为什么你写的sql查询慢?为什么你建的索引常失效?通过本章内容,你将学会MySQL性能下降的原因,索引的简介,索引创建的原则,explain命令的使用,以及explain输出字段的意义。助你了解索引,分析索引,使用索引,从而写出更高性能的sql语句。 阅读全文
摘要:
#Author:ge jianlist_1=[1,2,6,7,4,6,9,3,4,5,8,2,7,1]list_1=set(list_1)#集合list_2=set([1,3,4,55,66,77,8,9,3])print(list_1.intersection(list_2))#交集print(l 阅读全文
摘要:
#Author:ge jiandata = { '北京':{ '昌平':{ '沙河':['oldboy','test'], '天通苑':['链家','我爱我家'] }, '朝阳':{ '望京':['奔驰','陌陌'], '国贸':['CICC','HP'], }, } }exit_flag = Fa 阅读全文
摘要:
#Author:ge jian#字典info = { 'stu1101':'liude hua', 'stu1102':'li ming', 'stu1103':'zhangxue you', 'stu1104':'fdsfsg'}b = { 'stu1101':'Alex', 1:3, 2:5}i 阅读全文
摘要:
#字符串的用法 阅读全文
摘要:
#购物车实例#Author:ge jianproduct_list = [ ('iphone',5800), ('Mac',9800), ('Bike',800), ('Watch',2800), ('Coffee',58), ('Alex python',158),]shopping_list = 阅读全文
摘要:
#Author:ge jian_username = 'gejian'_password = '123'user = input("请输入用户名:")pwd = input("请输入密码:")if user == _username and pwd == _password: print("welc 阅读全文