1、循环正常结束是指没有中间截断,即没有执行break;
for i in range(10)
print(i)
else:
print("循环正常结束")
2、嵌套循环

for i in range(10)

for j in range(10)
print(i,j)
3.break 只会跳出当前循环

for i in range(10)

for j in range(10)
print(i,j)

if j >5:

break

4.for 循环,小循环不走

for i in range(10)

for j in range(10)
print(i,j)

if j >5:

break

print(i,j)

5.continue 跳出当次循环,继续下一次循环

for i in range(10)

for j in range(10)
print(i,j)

if j < 5:

continue

print(i,j)

6.break 跳出当前层循环,只跳一层;,continue跳出当次循环

for i in range(10)

for j in range(10)
print(i,j)

if j < 5:

continue

print(i,j)

7.数据类型
变量:用来记录状态
变量值的变化即状态的变化,程序运行的本质就是来处理一系列状态的变化
数据类型存在的原因:利用不同类型的数据来表示数据变化

8.海峰的博客之 数据类型
python2 对数据长度有限制
python3 对数据长度没有限制
python3整形长度没有限制
9.布尔类型表示

bool(0)& bool(1)

10.浮点型
工资,有零钱有整钱
数据类型:
数字:整形,长整,布尔,浮点,复数
11.复数 x+yj
12.字符串
前面加r,打印引号之内所有内容

print("a\nsdf")

print(r"a\nsdf")

13.单引号套双引号

print("i'm laura")

14.首字母大写capitalize
msg = 'hello world'

print (msg.capitalize())

15.字符串居中显示 center

print (msg.center(30,"*"))

16.count

print (msg.count("l"))
17.位置[]

print (msg[3])
18.count

print (msg.count("l",4,10))

19.顾头不顾尾

打印从头开始,尾号-1的区间,不要尾号

20.endswith

print (msg.endswith("d"))
21.指定空格tab

msg1='a\tb'

print (msg1) #指定空格tab

22.tab长度指定

print (msg1.expandtabs(10))
23.一个tab建,是一个空格 pycharm 把tab建换成4个空格

24.msg.find('l'),找索引

print (msg.find('d'))

25.索引对应字符串

print ('{0}{1}{0}'.format('name','age'))

26.不写索引的数字,但必须全部一一对应

print ('{name}'.format(name = 'alex'))

28.index

msg2='a1234'

print(msg.index('e'))

29.isalnum

print(msg2.isalnum())

30.isalnum

msg3='123aA'

print(msg3.isalnum())

31.isalnum()

msg4='123a_A'

print (msg4.isalnum())

32.isalpha()

msg4='123a_A'

print(msg4.isalpha())
33.isdecimal() 十进制是否

msg5='10'

print (msg5.isdecimal())

34.isdigital isnumeric

msg6='10.2'

print(msg6.isnumeric())
35.isidentifier 单词是否包含关键字

msg7='if'

print(msg7.isidentifier())

36.islower(0
msg7='if'
print(msg7.islower())
37.isspace() 是否空格
msg8='f\n'
msg9='\t'
print(msg8.isspace())
print(msg9.isspace())
38.istital () 单词首字母都是大写
 msg10='Haibao'
print(msg10.istitle())
39.isupper()
 msg10='Haibao'
print(msg10.isupper())
40.ljust 左对齐
msg10='Haibao'
print(msg10.ljust(10,'*'))

41..rjust()右对齐

msg10='Haibao'
print(msg10.rjust(10,'*'))
42..center()居中
msg10='Haibao'
print(msg10.center(10,'*'))
43.lower 转换成小写
msg10='Haibao'
print (msg10.lower())

44.upper()全转换成大写
msg10='Haibao'
print (msg10.upper()) 
45.find index 区别

msg14='hello'

print(msg14.find('w'))   -->-1

print(msg14.index('o'))   -->4

46. strip去掉空格
msg11=' woaini '
print (msg11.strip())
47.strip()去掉右边空格
 msg11=' woaini '
print (msg11.rstrip())
48.strip()去掉左边空格
msg11=' woaini '
print (msg11.lstrip())

49.maketrans

msg12='my name is laura'

table=str.maketrans('laura','haiba')

table1=str.maketrans('l','k')
  print(msg12.translate(table))

print(msg12.translate(table1))
50.maketrans 部分

msg13='my name is laura'

table=str.maketrans('m','q')

51.zfill 右对齐,不够用0填充
msg13=' abc'

print(msg13.zfill(20))  #--->00000000000000000abc

print(msg13.ljust(20,'0'))  #--->abc00000000000000

52打印索引

msg13=' abceddd'

print(msg13[4])

53.打印切片 顾头不顾尾

msg13=' abceddd'
        print(msg13[0:5])

print(msg13[0:-1])

54.完全切分

print(msg13[:])

55.:冒号切分

print(msg13[:])

56.步长
msg13=' abceddd'
print(msg13[2:4:2]) #步长 是 2
57.len
msg13=' abceddd'
print(len(msg13))

58.round

msg13=' abceddd'
print(round(2.5))
print(round(2.6))

59.运算符

print(1+2)

print(1-2)
print(1*5)
print(3/2)
print(3**2)

60.地板除

print(3.4//2) #地板除

61.取余数

print(5%3)

62.比较 ==
print(3==2)

print(2==2)

****** 以上练习

msg = 'hello world'
print (msg.capitalize())
print (msg.center(30,"*"))
print (msg.count("l"))
print (msg[3])
print (msg.count("l",4,10))
print (msg.endswith("d"))
msg1='a\tb'
print (msg1) #指定空格tab
print (msg1.expandtabs(10))
print (msg.find('d'))
print ('{0}{1}{0}'.format('name','age'))
print ('{name}'.format(name = 'alex'))
print (msg.index('e'))
msg2= 'a124'
print (msg2.isalnum())
msg3='123aA'
print(msg3.isalnum())
msg4='123a_A'
print (msg4.isalnum())
print(msg4.isalpha())
msg5='10'
print (msg5.isdecimal())
msg6='10.2'
print(msg6.isnumeric())
msg7='if'
print(msg7.isidentifier())
print(msg7.islower())
msg8='f\n'
msg9='\t'
print(msg8.isspace())
print(msg9.isspace())
msg10='Haibao'
print(msg10.istitle())
print(msg10.isupper())
print(msg10.ljust(10,'*'))
print(msg10.rjust(10,'*'))
print(msg10.center(10,'*'))
print (msg10.lower())
print (msg10.upper())
msg11=' woaini '
print (msg11.strip())
print (msg11.rstrip())
print (msg11.lstrip())
msg12='my name is laura'
table=str.maketrans('laura','haiba')
table1=str.maketrans('l','k')
print(msg12.translate(table))
print(msg12.translate(table1))
msg13=' abc'
print(msg13.zfill(20))
print(msg13.ljust(20,'0'))
print(msg13[4])
print(msg13[0:5])
print(msg13[0:-1])
print(msg13[:])
print(msg13[2:4:2]) #步长 是 2
print(len(msg13))
print(round(2.5))
print(round(2.6))
print(1+2)
print(1-2)
print(1*5)
print(3/2)
print(3**2)
print(3.4//2) #地板除
print(5%3)
print(3==2)
print(2==2)
 ******
63.比较运算符号

print(3 > 2)

print(3 < 2)

print(3 >= 2)

print(3 <= 2) 
64.赋值运算

print(a+=10)   #a+=1  <== > a=a+1

65.age=age/3 与 age/=3一样
66.位运算 二进制按位置进行对比 异或运算
>>> 7&5
5
>>> bin(7)
'0b111'
>>> bin(5)
'0b101'
>>> 7|5
7

67.<< 左移动运算符

3<<2

12

68.~   按位取反运算

~6

-7

69.逻辑

a=1

a>1

False

70.and or

a=1

b=3

a>1  and  b<4

False

71.所有数字类型都自带布尔值 非0的数字的布尔值都是true,0=false

>>> bool(0)

False

>>>bool(5)

True 
72. 1自带布尔值true

if 1:

print('ok')

....

ok

73  if 0:

print('ok')

....

74.空格 true,空=false

msg='  '    <==> True

msg=''   <==> False

75.true and true
>>> 10 and 32
32

76.true and false

>>> 10 and 0
0
77成员运算 只能用于字符串
>>> msg = 'abce'
>>> '3'in msg
False
>>> 'a' in msg
True
78.缓存策略
>>> age=10
>>> id(age)
490865392
>>> age1=10
>>> id(age1)
490865392
>>> age1=10 -----> age1=age

79.太大了,就缓存

>>> age=10
>>> id(age)
490865392
>>> age1=10
>>> id(age1)
490865392
>>> age1=10 -----> age1=age

80.is内存 是否存入缓存 ,长的地址不一样,短的就一样,小数据缓存机制,大数据估计都要另辟内存。

>>> name='haibao'
>>> name1=name
>>> id(name)
18066096
>>> id(name1)
18066096
>>>
******
>>> age=111111111111
>>> age1=111111111111
>>> age is age1
False
>>> age3=10
>>> age4=10
>>> age3 is age4
True
>>>
81.死循环 while loop

count=0

while True:

print("i am laura")

count+=1

82. 打印占用时间

count=0

while True:

if count == 10000000

print("i am laura")

break

count+=1

83.while 加条件

count=0

while count < 1000:

print("i am laura")

break

count+=1

84.判断输入的不是数字,则继续

guess_age = input("age:")

if guess_age.isdigit():

guess_age = int(guess_age)

else:

continue

85.猜年龄 while 循环

count=0

oldboy_age = 56

while count < 3:

    guess_age =  input("age:")
if guess_age.isdigit():
guess_age = int(guess_age)
else:
continue
if guess_age == oldboy_age:
print('you are right')
break
elif guess_age > oldboy_age:
print('guess smaller')
else:
print('guess a little bigger')
count +=1
86. 取名字方法之 笨方法
>>> names = "luhaibao,luhailing,luhaiwen"
>>> names 'luhaibao,luhailing,luhaiwen' >>> names[9] 'l' >>> names[9:19] 'luhailing,'
87.空列表 列表类型

>>> names = [] 

>>>type(names)

>>><class'list'> 

88.取names 第一个名字

>>>names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

>>>names[1]
>>>'lisi'

89.切片取

>>>names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

>>>names[1:3]

>>>'lisi', 'wangwu'
90.增加同时只能插入一个
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']
names.append('laura')

print(names)

92.定位插入 同时只能插入一个
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']
names.insert(2, 'loofoo')
print(names)

93.删除
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

names.remove('laura')

94.删除 三种方式
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']
names.remove('laura')
del names[0]
print(names)
print(names.pop(2))
print(names)

95.改名字
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

names[2] = 'haibao'

96.查询
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names[-3])

97.跳跃1一个

names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names[0::2])
********
98.最后3个

names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names[-3:])

99.取前三个
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names[0:3])

100.取元素下标
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names.index('zhaoliu'))

101.切片打印的位置是第二个位置
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names.index('zhaoliu'))

first_index =  names.index('zhaoliu')

second_index = names.[first_index+1:].index('wuqi')

print('second',second_index)

102.查询其他的
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names.index('zhaoliu'))

first_index =  names.index('zhaoliu')

second_index = names.[first_index+1:].index('wuqi')

print('second',second_index+first_index+1)

103.count
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print('count',names.count('zhaoliu'))

104.清空列表
names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

names.clear()

print(names)

105.extend 计算机认为字符串本身也是一个列表,所以也能合并,合并 extend namez 仍然存在

names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']
namez= ['zhenwwgsan', 'liwwi', 'wangwwwu', 'zhwwaoliu', 'wwwuqi']

names.extent(namez)

print(names)

106.reverse

names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names)

names.reverse()

print(names)

108.python3 字符串和数字无法排序

names = ['zhangsan',99,658, 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names)

names.sort()

print(names)

109.sort 按ascii 顺序编写
  names = ['zhangsan','99','658', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names)

names.sort()

print(names)

110.copy

names = ['zhangsan','99','658', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names)

namec=names.copy()

print(namec)  

111.两种方法区别
    names = ['zhangsan','99','658', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

print(names)

namec=names.copy()

namef=names

print(namec,id(names),id(namec))

print(namef,id(names),id(namef)) 
112 n4=names names变,n4也变,即相当于别名,软连接,用的是同一份数据。
      copy出来的数据,复制一份,保留了原来数据,被copy的数据有变化,新copy的数据没有变化
113.不能这样打下标

names = ['zhangsan','99','658', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

for i in names:

print(i,names.index(i))

114打印下标正确方法

names = ['zhangsan','99','658', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

for i in enumerate(names):

print(i)

115.打印下标正确方法

names = ['zhangsan','99','658', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

for i in enumerate(names):

print(i[0],i[1])

116.获取编号

names = ['zhangsan','99','658', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

for i ,ele in enumerate(names):

print(i,ele)

117.获取编号二

names = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu', 'wuqi']

good = ['good','bad','just soso']

for i ,ele in enumerate(names):

print(i,ele,good[i])

output:

0 zhangsan good

1 lisi    bad

3 wangwu justsoso

118.嵌套列表 在a的【1】(即第二位)位置 写入一个列表
>>> a = ['haibao','hailing','haiwen']
>>> a
['haibao', 'hailing', 'haiwen']
>>> a[1]
'hailing'
>>> a[1]=['hailing','doctor','doctor']
>>> a
['haibao', ['hailing', 'doctor', 'doctor'], 'haiwen']
>>> a[1][1]
'doctor'
>>>

119.enumerate

products =[

    ['iphone4',4800],
['iphone5',5800],
['iphone6',6800],
['iphone7',7800],
]
for i, ele in enumerate(products):
print(i,ele[0],ele[1])
output:
0 iphone4 4800
1 iphone5 5800 2 iphone6 6800 3 iphone7 7800
121.三级菜单
menu ={
 "北京市":{
  "东城区":["东华门街道","景山街道","交道口街道","安定门街道","北新桥街道","朝阳门街道","东四街道","建国门街道","东直门街道","前门街道","崇文门外街道","东花市街道","龙潭街道","体育馆路街道","天坛街道","永定门外街"],
  "西城区":["西长安街街道"," 新街口街道","月坛街道","展览路街道","德胜街道","金融街街道","什刹海街道","大栅栏街道","天桥街道","椿树街道","陶然亭街道","广内街道","牛街街道","白纸坊街道","广外街道"],
  "朝阳区":["建外街道","朝外街道","呼家楼街道","三里屯街道","左家庄街道","香河园街道","和平街街道","安贞街道","亚运村街道","小关街道","酒仙桥街道","麦子店街道","团结湖街道","六里屯街道"],
  "丰台区":["右安门街道","太平桥街道","西罗园街道","大红门街道","南苑街道","东高地街道","东铁匠营街道","卢沟桥街道","丰台街道","新村街道","长辛店街道","云岗街道","方庄地区","宛平城地区","马家堡街道","和义街道","卢沟桥地区","花乡地区","南苑地区","长辛店镇","王佐镇"],
  "通州区":["中仓街道","新华街道","北苑街道","玉桥街道","永顺街道","梨园街道","宋庄镇","张家湾镇","漷县镇","马驹桥镇","西集镇","台湖镇","永乐店镇","潞城镇","于家务回族乡"],
  "石景山区":["八宝山街道","老山街道","八角街道","古城街道","苹果园街道","金顶街街道","广宁街道","五里坨街道","鲁谷街道"],
  "海淀区":["万寿路街道","永定路街道","羊坊店街道","甘家口街道","八里庄街道","紫竹院街道","北下关街道","北太平庄街道","学院路街道","中关村街道","海淀街道","青龙桥街道","清华园街道","燕园街道","香山街道","清河街道","花园路街道","西三旗街道","马连洼街道","田村路街道","上地街道","万柳地区","东升地区","曙光街道","温泉镇","四季青镇","西北旺镇","苏家坨镇","上庄镇"],
  "房山区":["城关街道","新镇街道","向阳街道","东风街道","迎风街道","星城街道","良乡地区","周口店地区","琉璃河地区","拱辰街道","西潞街道","阎村镇","窦店镇","石楼镇","长阳镇","河北镇","长沟镇","大石窝镇","张坊镇","十渡镇","青龙湖镇","韩村河镇","霞云岭乡","南窖乡","佛子庄乡","大安山乡","史家营乡","蒲洼乡"],
  "门头沟区":["大峪街道","城子街道","东辛房街道","大台街道","王平街道","潭柘寺镇","永定镇","龙泉镇","军庄镇","雁翅镇","斋堂镇","清水镇","妙峰山镇"],
  "大兴区":["兴丰街道","林校路街道","清源街道","亦庄地区","黄村地区","旧宫地区","西红门镇","瀛海地区","观音寺街道","天宫院街道","青云店镇","采育镇","安定镇","礼贤镇","榆垡镇","庞各庄镇","北臧村镇","魏善庄镇","长子营镇"],
  "怀柔区":["怀柔地区","泉河街道","龙山街道","雁栖地区","庙城地区","北房镇","杨宋镇","桥梓镇","怀北镇","汤河口镇","渤海镇","九渡河镇","琉璃庙镇","宝山镇","长哨营满族乡","喇叭沟门满族乡"],
  "平谷区":["滨河街道","兴谷街道","渔阳地区","峪口镇","马坊地区","金海湖地区","东高村镇","山东庄镇","南独乐河镇","大华山镇","夏各庄镇","马昌营镇","王辛庄镇","大兴庄镇","刘家店镇","镇罗营镇","黄松峪乡","熊儿寨乡"],
  "密云区":["鼓楼街道","果园街道","檀营地区","密云镇","溪翁庄镇","西田各庄镇","十里堡镇","河南寨镇","巨各庄镇","穆家峪镇","太师屯镇","高岭镇","不老屯镇","冯家峪镇","古北口镇","大城子镇","东邵渠镇","北庄镇","新城子镇","石城镇"],
  "延庆区":["百泉街道","香水园街道","儒林街道","延庆镇","康庄镇","八达岭镇","永宁镇","旧县镇","张山营镇","四海镇","千家店镇","沈家营镇","大榆树镇","井庄镇","大庄科乡","刘斌堡乡","香营乡","珍珠泉乡"],
  "顺义区":["胜利街道","光明街道","仁和街道","后沙峪街道","天竺街道","杨镇街道","牛栏山街道","南法信街道","马坡街道","石园街道","空港街道","双丰街道","旺泉街道","高丽营镇","
 
作业

1.购物车

2.三级菜单
 

一鼓作气 博客--第二篇 note2的更多相关文章

  1. 一鼓作气 博客--第一篇 note1

    1. 语言的类型 ,编译型(c,c++),解释型(python,php,ruby,java),编译型可移植性差,优点是运行速度快,解释型语言特点:边执行边翻译,速度慢. 2.翻译官就是机器的解释器,跟 ...

  2. Scrum 冲刺博客第二篇

    一.当天站立式会议照片一张 二.每个人的工作 (有work item 的ID),并将其记录在码云项目管理中 昨天已完成的工作 配置和连接微信小程序服务器 个人界面设计 部主页界面设计 答题界面设计 今 ...

  3. 利用Hexo搭建个人博客-博客发布篇

    通过 <利用Hexo搭建个人博客-环境搭建篇> 以及 <利用Hexo搭建个人博客-博客初始化篇>,我们了解到了利用Hexo搭建个人博客需要的环境以及配置,下面这篇文章将会介绍如 ...

  4. 利用Github和Hexo搭建独立的个人博客--基础篇

    利用Github和Hexo搭建独立的个人博客--基础篇 摘要:本文主要参考了使用hexo和Github上创建自己的博客.如何搭建一个独立博客--简明Github Pages与Hexo教程和使用GitH ...

  5. Android应用开发-小巫CSDN博客clientJsoup篇

    Android应用开发-小巫CSDN博客clientJsoup篇 距上一篇博客已经过去了两个星期,小巫也认为很抱歉,由于在忙着做另外一个项目,差点儿抽不出空来,这不小巫会把剩下的博文全部在国庆补上.本 ...

  6. Flutter 即学即用系列博客总结篇

    前言 迟到的总结篇,其实大家看我之前发的系列博客最后一篇,发文时间是 3 月 29 日.距离现在快两个月了. 主要是因为有很多事情在忙,所以这篇就耽搁了. 今天终于可以跟大家会面了. 系列博客背景 F ...

  7. 利用Hexo搭建个人博客-博客初始化篇

    上一篇博文 <利用Hexo搭建个人博客-环境搭建篇> 中,我们讲解了利用Hexo搭建个人博客应该要配置哪些环境.相信大家已经迫不及待的想要知道接下来应该要怎么把自己的博客搭起来了,下面,让 ...

  8. Django开发博客 入门篇

    Django是神马? Django是一个开源免费的Web框架,使用Python编写.能够让你快速写出一个Web应用, 因为它包含了绝大部分的组件,比如认证,表单,ORM,Session,安全,文件上传 ...

  9. 基于Hexo+Node.js+github+coding搭建个人博客——基础篇

    附上个人教程:http://www.ookamiantd.top/2017/build-blog-hexo-base/ 搭建此博客的动机以及好处在此就不多谈了,之前已经表达过,详情请看Start My ...

随机推荐

  1. 把 excel 和 mysq l数据库相互转换

    不用代码轻松搞定,参考http://jingyan.baidu.com/article/fc07f9891cb56412ffe5199a.html 1.excel 转 mysql a.首先确认你的数据 ...

  2. Redis 外部访问设置

    1.错误原因 Redis搭建好后一般都是使用编程语言进行连接调用,默认Redis的设置是不允许外界访问的,连接Redis只能通过本地(127.0.0.1)来连接,而不能使用网络IP(192.168.1 ...

  3. Python 创建本地服务器环境生成二维码

    一. 需求 公司要做一个H5手机端适配页面,因技术问题所以H5是外包的,每次前端给我们源码,我们把源码传到服务器让其他人访问看是否存在bug,这个不是很麻烦吗?有人说,可以让前端在他们的服务器上先托管 ...

  4. 【Java EE 学习 56】【酒店会员管理系统技术点总结】

    一.树状菜单加载 这是js的一个典型应用,使用zTree插件能够完成该项任务http://www.ztree.me/v3/main.php 我是用的版本:zTree2.5 使用方法: <%@ p ...

  5. ppmoney 总结二

    1. return false   ES6函数的扩展:箭头函数  数组 arr.map()   arr.filter() <!DOCTYPE html> <html lang=&qu ...

  6. Global Translator

    Global Translator插件可以把已经通过翻译服务翻译好的内容生成对应语种的“静态”页面,或者说“缓存”起来,这样在一段时间内(可设置)想访问该语种的这 个页面的访客,就可以在不调用翻译服务 ...

  7. 【MySQL】 查询某个数据库有多少张数据表

    SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES WHERE table_schema = 'performanc ...

  8. C#获取当前程序运行路径的方法集合

    //获取当前进程的完整路径,包含文件名(进程名).string str = this.GetType().Assembly.Location;result: X:\xxx\xxx\xxx.exe (. ...

  9. 使用Git的Push出现rejected - non-fast-forward错误

    通过查阅资料,发现是文件冲突问题,即本地和远程的Repository中的文件出现了冲突所致,重新检查了一下,发现是在建立Repository时,添加了ReadMe.txt文件,导致和本地得项目分支不一 ...

  10. [转]WebPack 常用功能介绍

    概述 Webpack是一款用户打包前端模块的工具.主要是用来打包在浏览器端使用的javascript的.同时也能转换.捆绑.打包其他的静态资源,包括css.image.font file.templa ...