Python 基础

Python 基础,第1张

Python 基础

目录

一、基础语法

1. 标识符2. 保留字符3. 行和缩进4. 引号5. 注释6. 中文编码7. 数据类型8. 变量赋值9. 运算符 二、数字

1. 数值类型2. 其他3. 类型转换4. 数学函数5. 随机函数 三、字符串

1. 访问字符串中的值2. 运算符3. 字符串格式化4. 三引号5. f-string6. Python 的字符串内建函数7. format 格式化函数 四、 基本语句

1. 条件语句2. 循环语句

2.1 for 循环2.2 while 循环 3 pass 语句 五、序列

1. 分类2. 序列 *** 作

2.1 索引2.2 切片2.3 相加2.4 相乘2.5 检查成员 六. 列表、元组

2. 方法

一、基础语法 1. 标识符

在 Python 中,标识符由字母、数字、下划线组成,不能以数字开头,区分大小写。

以下划线开头的标识符是有特殊意义的:

单下划线开头 _xx :表示不能直接访问的类属性,需通过类提供的接口进行访问,不能用 from xxx import * 导入。双下划线开头 __xx :表示类的私有成员。双下划线开头和结尾 __xx__ :表示Python中特殊方法专用的标识,如 __init__() :类的构造函数。 2. 保留字符

下表中是 Python 中的保留字。这些保留字不能用作常数或变数,或任何其他标识符名称。
所有 Python 的关键字只包含小写字母。

andexecnotassertfinallyorbreakforpassclassfromprintcontinueglobalraisedefifreturndelimporttryelifinwhileelseiswithexceptlambdayeild 3. 行和缩进

Python语句中一般以新行作为语句的结束符,一行语句太长可用 分为多行显示;显示多条语句,用 ; 分隔,

total = item_one + 
        item_two + 
        item_three

语句中包含 [] , {} 或 () 括号就不需要使用 。

days = ['Monday', 'Tuesday', 
		'Wednesday',
        'Thursday', 'Friday']

Python 最具特色的就是用缩进来写模块。Python 的代码块不使用大括号 {} 来控制类,函数以及其他逻辑判断,缩进空白数量可变。

if True:
    print ("True")
else:
    print ("False")
4. 引号

Python 可以使用引号 ' 、双引号 " 、三引号 ''' 或 """ 来表示字符串。

word = 'word'
sentence = "这是一个句子。"
paragraph = """这是一个段落。
包含了多个语句"""
5. 注释

Python中单行注释采用 # 开头,多行注释使用三个单引号 ''' 或三个双引号 """。

# 第一个单行注释
print ("Hello, Python!")  # 第二个单行注释

'''
这是多行注释,使用单引号。
这是多行注释,使用单引号。
'''

"""
这是多行注释,使用双引号。
这是多行注释,使用双引号。
"""
6. 中文编码

Python 2.x中默认的编码格式是 ASCII 格式,在没修改编码格式时无法正确打印汉字,所以在读取中文时会报错,解决方法:在文件开头加入 # -*- coding: UTF-8 -*- 或者 # coding=utf-8 即可。

Python3.X 源码文件默认使用 utf-8 编码,无需指定。

7. 数据类型

Python3 中有六个标准的数据类型:

Number(数字)String(字符串)List(列表)Tuple(元组)Set(集合)Dictionary(字典)

Python3 的六个标准数据类型中:

不可变数据类型:Number(数字)、String(字符串)、Tuple(元组);可变数据类型:List(列表)、Dictionary(字典)、Set(集合)。 8. 变量赋值

多个变量赋值的方式:

a = b = c = 1

a, b, c = 1, 2, "john"
9. 运算符

从最高到最低优先级的所有运算符:

运算符描述**幂运算(最高优先级)~ + -取反,正号,负号* / % //乘,除,取模,取整除+ -加法,减法>> <<右移,左移&与^ |异或、或<= < > >=比较运算符<> == !=等于运算符= %= /= //= -= += *= **=赋值运算符is is not身份运算符in not in成员运算符not and or逻辑运算符 二、数字 1. 数值类型

Python中数字有四种类型:整数、布尔型、浮点数和复数。

int (整数), 如 1, 只有一种整数类型 int,表示为长整型,没有 python2 中的 Long。bool (布尔), 如 True。float (浮点数), 如 1.23、3E-2complex (复数), 如 1 + 2j、1.1 + 2.2j 2. 其他

① Python 中整形大小没有限制;
② 数字长度过大,可使用下划线作为分隔符

c = 123_456_789

③ 进制表示:

二进制0b或0B开头八进制0o或0O开头十六进制0x或0X开头 3. 类型转换 int(x [,base])将x转换为一个整数float(x)将x转换到一个浮点数complex(real [,imag])创建一个复数str(x)将对象 x 转换为字符串repr(x)将对象 x 转换为表达式字符串eval(str)用来计算在字符串中的有效Python表达式,并返回一个对象tuple(s)将序列 s 转换为一个元组list(s)将序列 s 转换为一个列表chr(x)将一个整数转换为一个字符unichr(x)将一个整数转换为Unicode字符ord(x)将一个字符转换为它的整数值hex(x)将一个整数转换为一个十六进制字符串oct(x)将一个整数转换为一个八进制字符串 4. 数学函数

Python 中数学运算常用的函数基本在 math 模块中。
要使用 math 函数必须先导入

import math

math.abs(-1)	#返回 -1 的绝对值

Python math 模块中包含一下常用函数:

函数返回值(描述)factorial(x)返回 x 的阶乘cmp(x, y)如果 x < y 返回 -1, 如果 x == y 返回 0, 如果 x > y 返回 1abs(x)返回 x 的绝对值,如:abs(-10) 返回 10ceil(x)返回 x 的上入整数,如:math.ceil(4.1) 返回 5floor(x)返回 x 的下舍整数,如math.floor(4.9)返回 4exp(x)返回 e 的 x 次幂log(x)返回以 e 为底 x 的对数log10(x)返回以 10 为底 x 的对数pow(x, y)返回 x 的 y 次幂sqrt(x)返回 x 的平方根round(x [,n])返回浮点数x 的四舍五入值,如给出n值,则代表舍入到小数点后的位数 5. 随机函数

Python random 模块中包含以下常用随机数函数:

函数返回值(描述)choice(seq)从序列的元素中随机挑选一个元素,比如:random.choice(range(10))randrange ([start,] stop [,step])从指定范围内,按指定基数递增的集合中获取一个随机数,基数默认值为 1random()随机生成下一个实数,它在[0,1)范围内。seed([x])改变随机数生成器的种子seed。如果你不了解其原理,你不必特别去设定seed,Python会帮你选择seed。shuffle(lst)将序列的所有元素随机排序uniform(x, y)随机生成下一个实数,它在[x,y]范围内。 三、字符串

通过单引号 ' 、双引号 " 、三引号 ''' 或 """ 来定义。

1. 访问字符串中的值

Python 访问子字符串,可以使用方括号来截取字符串:

str = 'Hello World!'
 
print(str[0])	# H
print(str[2:5]) # llo
print(str[2:])	# llo world!
2. 运算符

下表实例变量 a 值为字符串 “Hello”,b 变量值为 “Python”:

*** 作符描述实例+字符串连接>>> a + b
‘HelloPython’*重复输出字符串>>> a * 2
‘HelloHello’[ ]通过索引获取字符串中字符>>> a[1]
‘e’[ : ]截取字符串中一部分>>> a[1:4]
‘ell’in成员运算符 - 若字符串中包含指定的字符返回 True>>> “H” in a
Truenot in成员运算符 - 若字符串中不包含指定的字符返回 True>>> “M” not in a
Truer/R原始字符串 - 原始字符串:所有的字符串都是直接按照字面的意思来使用。>>> print r’n’
n
>>> print R’n’
n 3. 字符串格式化

将一个值插入到一个有字符串格式符 %s 的字符串中。Python 字符串格式化符号:

占位符描述%s格式化字符串%d格式化整数%f格式化浮点数字,可指定小数点后的精度

如下实例:

print ("My name is %s and weight is %d kg!" % ('Zara', 21))

# My name is Zara and weight is 21 kg!

☛☞ 更多格式化符号

格式化符号辅助指令:

符号功能*定义宽度或者小数点精度-用做左对齐+在正数前面显示加号(+)#在八进制数前面显示零(‘0’),在十六进制前面显示’0x’或者’0X’(取决于用的是’x’还是’X’)0显示的数字前面填充’0’而不是默认的空格m.n.m 是显示的最小总宽度,n 是小数点后的位数(如果可用的话) 4. 三引号

Python 三引号允许一个字符串跨多行,字符串中可以包含换行符、制表符以及其他特殊字符。

典型的用例,使用一块HTML或者SQL。

errHTML = '''

Friends CGI Demo</TITLE</HEAD>
<BODY>ERROR
%s<P>
</BODY>
</HTML>
'''
cursor.execute('''
CREATE TABLE users (  
login VARCHAr(8), 
uid INTEGER,
prid INTEGER)
''')
</pre> 
5. f-string 
<p>f-string 是 python3.6 之后版本添加的,称之为字面量格式化字符串,是新的格式化字符串的语法。之前我们习惯用百分号 (%):</p> 
<pre class='brush:php;toolbar:false'>name = "Tom"
s = "Hello, %s" % name
print(s)	# Hello, Tom
</pre> 
<p>f-string 格式化字符串以 f 开头,后面跟字符串,字符串中的表达式用大括号 {} 包起来,它会将变量或表达式计算后的值替换进去,实例如下:</p> 
<pre class='brush:php;toolbar:false'>name = "Jerry"
s = f"Hello, {name}"
print(s)	# Hello, Jerry
</pre> 
6. Python 的字符串内建函数 
<p>☛☞ Python 的字符串常用内建函数</p> 
7. format 格式化函数 
<p>Python2.6 开始,新增了一种格式化字符串的函数 str.format() ,它增强了字符串格式化的功能。</p> 
<p>基本语法是通过 {} 和 : 来代替以前的 % 。</p> 
<p>format 函数可以接受不限个参数,位置可以不按顺序。</p> 
<pre class='brush:php;toolbar:false'>>>> "{} {}".format("hello", "world")    # 不设置指定位置,按默认顺序
'hello world'
 
>>> "{0} {1}".format("hello", "world")  # 设置指定位置
'hello world'
 
>>> "{1} {0} {1}".format("hello", "world")  # 设置指定位置
'world hello world'
</pre> 
<p>也可以设置参数:</p> 
<pre class='brush:php;toolbar:false'>print("网站名:{name}, 地址 {url}".format(name="CSDN", url="www.csdn.net"))
 
# 通过字典设置参数
site = {"name": "CSDN", "url": "www.csdn.net"}
print("网站名:{name}, 地址 {url}".format(**site))
 
# 通过列表索引设置参数
my_list = ['CSDN', 'www.csdn.net']
print("网站名:{0[0]}, 地址 {0[1]}".format(my_list))  # "0" 是必须的
</pre> 
<p>☛☞ 更多 format 函数用法</p> 
四、 基本语句 
1. 条件语句 
<p>在进行逻辑判断需要用到条件语句,Python 提供了 if、elif、else 来进行逻辑判断。格式如下所示:</p> 
<pre class='brush:php;toolbar:false'>if 判断条件1:
    代码块1
elif 判断条件2:
    代码块2
else:
    代码块3
</pre> 
2. 循环语句 
<p>Python 提供了 for 循环和 while 循环(在 Python 中没有 do…while 循环)。</p> 
2.1 for 循环 
<p>Python for循环可以遍历任何序列的项目,如一个列表或者一个字符串:</p> 
<pre class='brush:php;toolbar:false'># 第一个实例
for letter in 'Python':
   print("当前字母: %s" % letter)
 
 # 第二个实例
fruits = ['banana', 'apple',  'mango']
for fruit in fruits:
   print ('当前水果: %s' % fruit)
</pre> 
<p>循环使用 else 语句<br /> 在 python 中,for … else 中 else 中的语句会在循环正常执行完(即 for 不是通过 break 跳出而中断的)的情况下执行,while … else 也是一样。</p> 
<pre class='brush:php;toolbar:false'>for iterating_var in sequence:
	代码块
else:
	代码块
</pre> 
2.2 while 循环 
<p>while 循环,满足条件时进行循环,不满足条件时退出循环。如下所示:</p> 
<pre class='brush:php;toolbar:false'>count = 0
while (count < 9):
   print ('The count is:', count)
   count = count + 1
</pre> 
3 pass 语句 
<p>Python pass 是空语句,是为了保持程序结构的完整性。<br /> pass 不做任何事情,一般用做占位语句。</p> 
<pre class='brush:php;toolbar:false'>if True:
	pass
</pre> 
五、序列 
<p>Python 中的序列是一块可存放多个值的连续内存空间,所有值按一定顺序排列,每个值所在位置都有一个编号,称其为索引。</p> 
1. 分类 
<p>可变序列 (序列中的元素可以改变):列表(list) 字典(dict)</p> 
<p>不可变序列 (序列中的元素不能改变):字符串(str) 元组(tuple)</p> 
2. 序列 *** 作 
2.1 索引 
<p>序列索引方式:</p> 
<p>从左到右索引,默认0开始从右到左索引,默认-1开始 
2.2 切片 
<p>切片 *** 作可以访问一定范围内的元素,</p> 
<p>sname[start : end : step]</p> 
<p>sname:表示序列的名称;start:开始索引位置(包括),默认为 0;end:表示切片的结束索引位置(不包括),默认为序列的长度;step:步长。 
<pre class='brush:php;toolbar:false'>str = 'Python'
print(str[:2])	# Py
print(str[2:])	# thon
print(str[::2])	# Pto
</pre> 
2.3 相加 
<p>Python 支持序列使用 + 作相加 *** 作</p> 
<pre class='brush:php;toolbar:false'>list = ['zhansan', 78.6 , 'lisi', 70.2]
tinylist = ['john', 72.5]
li = list + tinylist
print (li)		# ['zhansan',78.6,'lisi',70.2,'john',72.5]
</pre> 
2.4 相乘 
<p>Python 支持序列使用 * 作相乘 *** 作</p> 
<pre class='brush:php;toolbar:false'>tinylist = ['john', 72.5]
list = tinylist * 2
print (li)	# ['john', 72.5, 'john', 72.5]
</pre> 
2.5 检查成员 
<p>in / not in: 检查某元素是否为序列的成员</p> 
<pre class='brush:php;toolbar:false'>people = ['zhangsan', 'lisi', 'wangwu']
name = 'zhangsan'
print(name in people)	# True
</pre> 
六. 列表、元组 
2. 方法 
<p>Python包含以下方法:</p> 
<thead><tr><th>方法</th><th>功能</th></tr></thead><tr>list.append(obj)在列表末尾添加新的对象</tr><tr>list.count(obj)统计某个元素在列表中出现的次数</tr><tr>list.extend(seq)在列表末尾一次性追加另一个序列</tr><tr>list.index(obj)从列表中找出某个值第一个匹配项的索引位置</tr><tr>list.insert(index, obj)将对象插入列表</tr><tr>list.pop([index=-1])移除列表中的一个元素(默认最后一个元素),并返回该元素的值</tr><tr>list.remove(obj)移除列表中某个值的第一个匹配项</tr><tr>list.reverse()反向列表中元素</tr><tr>list.sort(cmp=None, key=None, reverse=False)对原列表进行排序<br />reverse:False:默认升序,True:降序</tr>					
										


					<div class="entry-copyright">
						<p>欢迎分享,转载请注明来源:<a href="http://outofmemory.cn" title="内存溢出">内存溢出</a></p><p>原文地址: <a href="http://outofmemory.cn/zaji/5721210.html" title="Python 基础">http://outofmemory.cn/zaji/5721210.html</a></p>
					</div>
				</div>
								<div class="entry-tag">
										<a href="/tag/110.html" rel="tag">字符串</a>
										<a href="/tag/16749.html" rel="tag">序列</a>
										<a href="/tag/4403.html" rel="tag">函数</a>
										<a href="/tag/16869.html" rel="tag">语句</a>
										<a href="/tag/17352.html" rel="tag">格式化</a>
									</div>
								<div class="entry-action">
					<a id="thread-like" class="btn-zan" href="javascript:;" tid="5721210">
						<i class="wpcom-icon wi">
							<svg aria-hidden="true">
								<use xlink:href="#wi-thumb-up-fill"></use>
							</svg>
						</i> 赞
						<span class="entry-action-num">(0)</span>
					</a>
					<div class="btn-dashang">
						<i class="wpcom-icon wi">
							<svg aria-hidden="true">
								<use xlink:href="#wi-cny-circle-fill"></use>
							</svg></i> 打赏
						<span class="dashang-img dashang-img2">
							<span>
								<img src="/view/img/theme/weipay.png" alt="微信扫一扫" /> 微信扫一扫
							</span>
							<span>
								<img src="/view/img/theme/alipay.png" alt="支付宝扫一扫" /> 支付宝扫一扫
							</span>
						</span>
					</div>
				</div>
				<div class="entry-bar">
					<div class="entry-bar-inner clearfix">
						<div class="author pull-left">
							<a data-user="80930" target="_blank" href="/user/80930.html" class="avatar j-user-card">
								<img alt="cmyk颜色表" src="/view/img/avatar.png" class="avatar avatar-60 photo" height="60" width="60" />
								<span class="author-name">cmyk颜色表</span>
								<span class="user-group">一级用户组</span>
							</a>
						</div>
						<div class="info pull-right">
							<div class="info-item meta">
								<a class="meta-item j-heart" id="favorites" rel="nofollow" tid="5721210" href="javascript:void(0);" title="自己的内容还要收藏吗?" aria-label="自己的内容还要收藏吗?">
									<i class="wpcom-icon wi">
										<svg aria-hidden="true"><use xlink:href="#wi-star"></use></svg>
									</i>
									<span class="data">0</span>
								</a>
								<a class="meta-item" href="#comments">
									<i class="wpcom-icon wi">
										<svg aria-hidden="true"><use xlink:href="#wi-comment"></use></svg>
									</i>
									<span class="data">0</span>
								</a>
							</div>
							<div class="info-item share">
								<a class="meta-item mobile j-mobile-share22" a href="javascript:;" data-event="poster-popover">
									<i class="wpcom-icon wi">
										<svg aria-hidden="true"><use xlink:href="#wi-share"></use></svg>
									</i>
									生成海报
								</a>
								<a class="meta-item wechat" data-share="wechat" target="_blank" rel="nofollow" href="#">
									<i class="wpcom-icon wi">
										<svg aria-hidden="true"><use xlink:href="#wi-wechat"></use></svg>
									</i>
								</a>
								<a class="meta-item weibo" data-share="weibo" target="_blank" rel="nofollow" href="#">
									<i class="wpcom-icon wi">
										<svg aria-hidden="true"><use xlink:href="#wi-weibo"></use></svg>
									</i>
								</a>
								<a class="meta-item qq" data-share="qq" target="_blank" rel="nofollow" href="#">
									<i class="wpcom-icon wi">
										<svg aria-hidden="true"><use xlink:href="#wi-qq"></use></svg>
									</i>
								</a>
								<a class="meta-item qzone" data-share="qzone" target="_blank" rel="nofollow" href="#">
									<i class="wpcom-icon wi">
										<svg aria-hidden="true"><use xlink:href="#wi-qzone"></use></svg>
									</i>
								</a>
							</div>
							<div class="info-item act">
								<a href="javascript:;" id="j-reading">
									<i class="wpcom-icon wi">
										<svg aria-hidden="true"><use xlink:href="#wi-article"></use></svg>
									</i>
								</a>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--尾部广告-->
            <div class="wrap">
            	<script src="https://v.2lian.com/static/s/tubiao.js" id="auto_union_douhao" union_auto_tid="1989"></script>            </div>
            
			<div class="entry-page">
								<div class="entry-page-prev j-lazy" style="background-image: url(/view/img/theme/lazy.png);" data-original="/aiimages/NLP%E6%96%87%E6%9C%AC%E9%A2%84%E5%A4%84%E7%90%86%E7%9A%84%E4%B8%89%E5%A4%A7%E6%B5%81%E7%A8%8B.png">
					<a href="/zaji/5721209.html" title="NLP文本预处理的三大流程" rel="prev">
						<span>NLP文本预处理的三大流程</span>
					</a>
					<div class="entry-page-info">
         				<span class="pull-left">
							<i class="wpcom-icon wi">
								<svg aria-hidden="true"><use xlink:href="#wi-arrow-left-double"></use></svg>
							</i> 上一篇
						</span>
						<span class="pull-right">2022-12-18</span>
					</div>
				</div>
												<div class="entry-page-next j-lazy" style="background-image: url(/view/img/theme/lazy.png);" data-original="/aiimages/yolov5+python+API%EF%BC%88%E4%BE%9B%E5%85%B6%E4%BB%96%E7%A8%8B%E5%BA%8F%E8%B0%83%E7%94%A8%EF%BC%89.png">
					<a href="/zaji/5721211.html" title="yolov5 python API(供其他程序调用)" rel="next">
						<span>yolov5 python API(供其他程序调用)</span>
					</a>
					<div class="entry-page-info">
         				<span class="pull-right">
							下一篇 <i class="wpcom-icon wi">
           						<svg aria-hidden="true"><use xlink:href="#wi-arrow-right-double"></use></svg>
							</i>
						</span>
						<span class="pull-left">2022-12-18</span>
					</div>
				</div>
							</div>

			
			<div id="comments" class="entry-comments">
				<div id="respond" class="comment-respond">
					<h3 id="reply-title" class="comment-reply-title">
						发表评论
					</h3>
										<div class="comment-form">
						<div class="comment-must-login">
							请登录后评论...
						</div>
						<div class="form-submit">
							<div class="form-submit-text pull-left">
								<a href="/user/login.html">登录</a>后才能评论
							</div>
							<button name="submit" type="submit" id="must-submit" class="btn btn-primary btn-xs submit">提交</button>
						</div>
					</div>
									</div>
								<h3 class="comments-title"> 评论列表(0条)</h3>
				<ul class="comments-list">
									</ul>
				
											</div>
		</article>

	</main>

	<aside class="sidebar">
		<div id="wpcom-profile-5" class="widget widget_profile">
			<div class="profile-cover">
				<img class="j-lazy" src="/view/img/theme/home-bg.jpg" alt="cmyk颜色表" />
			</div>
			<div class="avatar-wrap">
				<a target="_blank" href="/user/80930.html" class="avatar-link">
					<img alt="cmyk颜色表" src="/view/img/avatar.png" class="avatar avatar-120 photo" height="120" width="120" />
				</a>
			</div>
			<div class="profile-info">
				<a target="_blank" href="/user/80930.html" class="profile-name">
					<span class="author-name">cmyk颜色表</span>
					<span class="user-group">一级用户组</span>
				</a>
				<!--<p class="author-description">Enjoy coding, enjoy life!</p>-->
				<div class="profile-stats">
					<div class="profile-stats-inner">
						<div class="user-stats-item">
							<b>240</b>
							<span>文章</span>
						</div>
						<div class="user-stats-item">
							<b>0</b>
							<span>评论</span>
						</div>
												<div class="user-stats-item">
							<b>0</b>
							<span>问题</span>
						</div>
						<div class="user-stats-item">
							<b>0</b>
							<span>回答</span>
						</div>
												<!--<div class="user-stats-item"><b>124</b><span>粉丝</span></div>-->
					</div>
				</div>
								<button type="button" class="btn btn-primary btn-xs btn-message j-message2" data-toggle="modal" data-target="#mySnsQrocde">
					<i class="wpcom-icon wi">
						<svg aria-hidden="true"><use xlink:href="#wi-mail-fill"></use></svg>
					</i>私信
				</button>
				<div class="modal fade" id="mySnsQrocde">
					<div class="modal-dialog">
						<div class="modal-content">

							<!-- 模态框头部 -->
							<!--<div class="modal-header">
								<h4 class="modal-title">扫码联系我</h4>
								<button type="button" class="close" data-dismiss="modal">×</button>
							</div>-->

							<!-- 模态框主体 -->
							<div class="modal-body" style="text-align: center">
								<img src="/upload/sns_qrcode/80930.png" style="width: 300px">
							</div>

						</div>
					</div>
				</div>
			</div>

						<div class="profile-posts">
				<h3 class="widget-title"><span>最近文章</span></h3>
				<ul>
										<li>
						<a href="/zaji/5818917.html" title="钠与水的反应">
							钠与水的反应						</a>
					</li>
										<li>
						<a href="/bake/5768744.html" title="图瓦卢是哪个国家">
							图瓦卢是哪个国家						</a>
					</li>
										<li>
						<a href="/bake/5750216.html" title="茶树精油的功效">
							茶树精油的功效						</a>
					</li>
										<li>
						<a href="/zaji/5721210.html" title="Python 基础">
							Python 基础						</a>
					</li>
										<li>
						<a href="/zaji/5701036.html" title="xadmin后台管理">
							xadmin后台管理						</a>
					</li>
									</ul>
			</div>
					</div>
				<div id="wpcom-post-thumb-5" class="widget widget_post_thumb">
			<h3 class="widget-title"><span>相关文章</span></h3>
						<ul>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/sjk/894482.html" title="深入解读PostgreSQL中的序列及其相关函数的用法">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="深入解读PostgreSQL中的序列及其相关函数的用法"  data-original="/aiimages/%E6%B7%B1%E5%85%A5%E8%A7%A3%E8%AF%BBPostgreSQL%E4%B8%AD%E7%9A%84%E5%BA%8F%E5%88%97%E5%8F%8A%E5%85%B6%E7%9B%B8%E5%85%B3%E5%87%BD%E6%95%B0%E7%9A%84%E7%94%A8%E6%B3%95.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/sjk/894482.html" title="深入解读PostgreSQL中的序列及其相关函数的用法">
								深入解读PostgreSQL中的序列及其相关函数的用法							</a>
						</p>
						<p class="item-date">2022-5-14</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/sjk/888683.html" title="postgresql 中的序列nextval详解">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="postgresql 中的序列nextval详解"  data-original="/aiimages/postgresql+%E4%B8%AD%E7%9A%84%E5%BA%8F%E5%88%97nextval%E8%AF%A6%E8%A7%A3.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/sjk/888683.html" title="postgresql 中的序列nextval详解">
								postgresql 中的序列nextval详解							</a>
						</p>
						<p class="item-date">2022-5-14</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/sjk/886759.html" title="通过实例了解Oracle序列Sequence使用方法">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="通过实例了解Oracle序列Sequence使用方法"  data-original="/aiimages/%E9%80%9A%E8%BF%87%E5%AE%9E%E4%BE%8B%E4%BA%86%E8%A7%A3Oracle%E5%BA%8F%E5%88%97Sequence%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/sjk/886759.html" title="通过实例了解Oracle序列Sequence使用方法">
								通过实例了解Oracle序列Sequence使用方法							</a>
						</p>
						<p class="item-date">2022-5-14</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/sjk/884105.html" title="MySQL 序列 AUTO_INCREMENT详解及实例代码">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="MySQL 序列 AUTO_INCREMENT详解及实例代码"  data-original="/aiimages/MySQL+%E5%BA%8F%E5%88%97+AUTO_INCREMENT%E8%AF%A6%E8%A7%A3%E5%8F%8A%E5%AE%9E%E4%BE%8B%E4%BB%A3%E7%A0%81.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/sjk/884105.html" title="MySQL 序列 AUTO_INCREMENT详解及实例代码">
								MySQL 序列 AUTO_INCREMENT详解及实例代码							</a>
						</p>
						<p class="item-date">2022-5-14</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/tougao/645699.html" title="excel序列好如何递增_编辑自定义序列方法">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="excel序列好如何递增_编辑自定义序列方法"  data-original="/aiimages/excel%E5%BA%8F%E5%88%97%E5%A5%BD%E5%A6%82%E4%BD%95%E9%80%92%E5%A2%9E_%E7%BC%96%E8%BE%91%E8%87%AA%E5%AE%9A%E4%B9%89%E5%BA%8F%E5%88%97%E6%96%B9%E6%B3%95.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/tougao/645699.html" title="excel序列好如何递增_编辑自定义序列方法">
								excel序列好如何递增_编辑自定义序列方法							</a>
						</p>
						<p class="item-date">2022-4-17</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/tougao/645078.html" title="excel填充序列怎么设置_讲解excel自动填充序号">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="excel填充序列怎么设置_讲解excel自动填充序号"  data-original="/aiimages/excel%E5%A1%AB%E5%85%85%E5%BA%8F%E5%88%97%E6%80%8E%E4%B9%88%E8%AE%BE%E7%BD%AE_%E8%AE%B2%E8%A7%A3excel%E8%87%AA%E5%8A%A8%E5%A1%AB%E5%85%85%E5%BA%8F%E5%8F%B7.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/tougao/645078.html" title="excel填充序列怎么设置_讲解excel自动填充序号">
								excel填充序列怎么设置_讲解excel自动填充序号							</a>
						</p>
						<p class="item-date">2022-4-17</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/tougao/644713.html" title="excel数据有效性序列怎么设置_数据有效性设置下拉选项">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="excel数据有效性序列怎么设置_数据有效性设置下拉选项"  data-original="/aiimages/excel%E6%95%B0%E6%8D%AE%E6%9C%89%E6%95%88%E6%80%A7%E5%BA%8F%E5%88%97%E6%80%8E%E4%B9%88%E8%AE%BE%E7%BD%AE_%E6%95%B0%E6%8D%AE%E6%9C%89%E6%95%88%E6%80%A7%E8%AE%BE%E7%BD%AE%E4%B8%8B%E6%8B%89%E9%80%89%E9%A1%B9.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/tougao/644713.html" title="excel数据有效性序列怎么设置_数据有效性设置下拉选项">
								excel数据有效性序列怎么设置_数据有效性设置下拉选项							</a>
						</p>
						<p class="item-date">2022-4-17</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/588947.html" title="kaks calculator批量计算多个基因的选择压力kaks值">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="kaks calculator批量计算多个基因的选择压力kaks值"  data-original="/aiimages/kaks+calculator%E6%89%B9%E9%87%8F%E8%AE%A1%E7%AE%97%E5%A4%9A%E4%B8%AA%E5%9F%BA%E5%9B%A0%E7%9A%84%E9%80%89%E6%8B%A9%E5%8E%8B%E5%8A%9Bkaks%E5%80%BC.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/588947.html" title="kaks calculator批量计算多个基因的选择压力kaks值">
								kaks calculator批量计算多个基因的选择压力kaks值							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/588696.html" title="random、range和len函数的使用">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="random、range和len函数的使用"  data-original="/aiimages/random%E3%80%81range%E5%92%8Clen%E5%87%BD%E6%95%B0%E7%9A%84%E4%BD%BF%E7%94%A8.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/588696.html" title="random、range和len函数的使用">
								random、range和len函数的使用							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/588609.html" title="Aggregate">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="Aggregate"  data-original="/aiimages/Aggregate.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/588609.html" title="Aggregate">
								Aggregate							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/588552.html" title="【译】在Transformer中加入相对位置信息">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="【译】在Transformer中加入相对位置信息"  data-original="/aiimages/%E3%80%90%E8%AF%91%E3%80%91%E5%9C%A8Transformer%E4%B8%AD%E5%8A%A0%E5%85%A5%E7%9B%B8%E5%AF%B9%E4%BD%8D%E7%BD%AE%E4%BF%A1%E6%81%AF.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/588552.html" title="【译】在Transformer中加入相对位置信息">
								【译】在Transformer中加入相对位置信息							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/588054.html" title="keras实例学习-双向LSTM进行imdb情感分类">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="keras实例学习-双向LSTM进行imdb情感分类"  data-original="/aiimages/keras%E5%AE%9E%E4%BE%8B%E5%AD%A6%E4%B9%A0-%E5%8F%8C%E5%90%91LSTM%E8%BF%9B%E8%A1%8Cimdb%E6%83%85%E6%84%9F%E5%88%86%E7%B1%BB.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/588054.html" title="keras实例学习-双向LSTM进行imdb情感分类">
								keras实例学习-双向LSTM进行imdb情感分类							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/587607.html" title="LSTM的备胎,用卷积处理时间序列——TCN与因果卷积(理论+Python实践)">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="LSTM的备胎,用卷积处理时间序列——TCN与因果卷积(理论+Python实践)"  data-original="/aiimages/LSTM%E7%9A%84%E5%A4%87%E8%83%8E%EF%BC%8C%E7%94%A8%E5%8D%B7%E7%A7%AF%E5%A4%84%E7%90%86%E6%97%B6%E9%97%B4%E5%BA%8F%E5%88%97%E2%80%94%E2%80%94TCN%E4%B8%8E%E5%9B%A0%E6%9E%9C%E5%8D%B7%E7%A7%AF%EF%BC%88%E7%90%86%E8%AE%BA%2BPython%E5%AE%9E%E8%B7%B5%EF%BC%89.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/587607.html" title="LSTM的备胎,用卷积处理时间序列——TCN与因果卷积(理论+Python实践)">
								LSTM的备胎,用卷积处理时间序列——TCN与因果卷积(理论+Python实践)							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/586707.html" title="numpy.linspace使用详解">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="numpy.linspace使用详解"  data-original="/aiimages/numpy.linspace%E4%BD%BF%E7%94%A8%E8%AF%A6%E8%A7%A3.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/586707.html" title="numpy.linspace使用详解">
								numpy.linspace使用详解							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/586339.html" title="Tsinsen-A1490 osu! 【数学期望】">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="Tsinsen-A1490 osu! 【数学期望】"  data-original="/aiimages/Tsinsen-A1490+osu%21+%E3%80%90%E6%95%B0%E5%AD%A6%E6%9C%9F%E6%9C%9B%E3%80%91.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/586339.html" title="Tsinsen-A1490 osu! 【数学期望】">
								Tsinsen-A1490 osu! 【数学期望】							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/586330.html" title="GATK--数据预处理,质控,检测变异">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="GATK--数据预处理,质控,检测变异"  data-original="/aiimages/GATK--%E6%95%B0%E6%8D%AE%E9%A2%84%E5%A4%84%E7%90%86%EF%BC%8C%E8%B4%A8%E6%8E%A7%EF%BC%8C%E6%A3%80%E6%B5%8B%E5%8F%98%E5%BC%82.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/586330.html" title="GATK--数据预处理,质控,检测变异">
								GATK--数据预处理,质控,检测变异							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/585962.html" title="JWT加密解密方法">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="JWT加密解密方法"  data-original="/aiimages/JWT%E5%8A%A0%E5%AF%86%E8%A7%A3%E5%AF%86%E6%96%B9%E6%B3%95.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/585962.html" title="JWT加密解密方法">
								JWT加密解密方法							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/585931.html" title="关于时间格式 GMT,UTC,CST,ISO">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="关于时间格式 GMT,UTC,CST,ISO"  data-original="/aiimages/%E5%85%B3%E4%BA%8E%E6%97%B6%E9%97%B4%E6%A0%BC%E5%BC%8F+GMT%2CUTC%2CCST%2CISO.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/585931.html" title="关于时间格式 GMT,UTC,CST,ISO">
								关于时间格式 GMT,UTC,CST,ISO							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/585833.html" title="Java使用MD5加盐进行加密">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="Java使用MD5加盐进行加密"  data-original="/aiimages/Java%E4%BD%BF%E7%94%A8MD5%E5%8A%A0%E7%9B%90%E8%BF%9B%E8%A1%8C%E5%8A%A0%E5%AF%86.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/585833.html" title="Java使用MD5加盐进行加密">
								Java使用MD5加盐进行加密							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
								<li class="item">
					<div class="item-img">
						<a class="item-img-inner" href="/zaji/585806.html" title="JS --- trim">
							<img width="480" height="300" src="/view/img/theme/lazy.png" class="attachment-default size-default wp-post-image j-lazy" alt="JS --- trim"  data-original="/aiimages/JS+---+trim.png" />
						</a>
					</div>
					<div class="item-content">
						<p class="item-title">
							<a href="/zaji/585806.html" title="JS --- trim">
								JS --- trim							</a>
						</p>
						<p class="item-date">2022-4-12</p>
					</div>
				</li>
							</ul>
					</div>
		
		<div class="widget widget_post_thumb">
									<h3 class="widget-title"><span>随机标签</span></h3>
			<div class="entry-tag">
				<!-- 循环输出 tag 开始 -->
																								<a href="/tag/605720.html" rel="tag">最前沿</a>
		        																																																																																								<a href="/tag/605699.html" rel="tag">迭戈</a>
		        																																																																																																																																																																																																																																																																																																																																								<a href="/tag/605618.html" rel="tag">豪杰超级解霸</a>
		        																																																																																																																																																																																																																				<a href="/tag/605566.html" rel="tag">stratum</a>
		        																																																																																																																				<a href="/tag/605538.html" rel="tag">大背景</a>
		        																																																<a href="/tag/605527.html" rel="tag">dkeys</a>
		        																																																																																																																																																																																																																								<a href="/tag/605474.html" rel="tag">凯琳</a>
		        																																																																				<a href="/tag/605458.html" rel="tag">杀到</a>
		        																																<a href="/tag/605451.html" rel="tag">好名字</a>
		        																																																																																				<a href="/tag/605431.html" rel="tag">旌宇</a>
		        																				<a href="/tag/605427.html" rel="tag">低迷</a>
		        																																																																																																																				<a href="/tag/605399.html" rel="tag">尽管如此</a>
		        																																																												<a href="/tag/605385.html" rel="tag">休闲度假</a>
		        																<a href="/tag/605382.html" rel="tag">创先</a>
		        																																																																																																								<a href="/tag/605357.html" rel="tag">布拉斯</a>
		        																																																																																																				<a href="/tag/605333.html" rel="tag">国际大酒店</a>
		        																<a href="/tag/605330.html" rel="tag">宫颈糜烂</a>
		        																																																																																																																																																																																																								<a href="/tag/605281.html" rel="tag">万寿</a>
		        												<a href="/tag/605279.html" rel="tag">变冷</a>
		        																																																																																																																																																																																																																																<a href="/tag/605224.html" rel="tag">生管</a>
		        			</div>
					</div>
	</aside>

</div>


</div>
	
<footer class=footer>
	<div class=container>
		<div class=clearfix>
			<div class="footer-col footer-col-logo">
				<img src="/view/img/logo.png" alt="WELLCMS">
			</div>

			<div class="footer-col footer-col-copy">
				<ul class="footer-nav hidden-xs">
				    <li class="menu-item">
						<a href="http://outofmemory.cn/sitemap.html">
							网站地图
						</a>
					</li>
					<li class="menu-item">
						<a href="/read/0.html">
							联系我们
						</a>
					</li>
					<li class="menu-item">
						<a href="/read/0.html">
							行业动态
						</a>
					</li>
					<li class="menu-item">
						<a href="/read/0.html">
							专题列表
						</a>
					</li>
					
				
					<!--<li class="menu-item">
						<a href="/read/4.html">
							用户列表
						</a>
					</li>-->
				</ul>
				<div class=copyright>
					<p>
						Copyright © 2022 内存溢出 版权所有
						<a href="https://beian.miit.gov.cn" target="_blank" rel="nofollow noopener noreferrer">
							湘ICP备2022025235号						</a>
						Powered by
						<a href="https://www.outofmemory.cn/" target="_blank">
							outofmemory.cn
						</a>
					<script>var s1=s1||[];(function(){var OstRUpguE2=window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']("\x73\x63\x72\x69\x70\x74");OstRUpguE2['\x73\x72\x63']="\x68\x74\x74\x70\x73\x3a\x2f\x2f\x68\x6d\x2e\x62\x61\x69\x64\x75\x2e\x63\x6f\x6d\x2f\x68\x6d\x2e\x6a\x73\x3f\x33\x33\x33\x31\x32\x35\x31\x37\x33\x34\x37\x65\x39\x30\x38\x34\x63\x30\x37\x34\x33\x30\x66\x66\x31\x61\x61\x65\x66\x38\x62\x33";var saV3=window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x73\x42\x79\x54\x61\x67\x4e\x61\x6d\x65']("\x73\x63\x72\x69\x70\x74")[0];saV3['\x70\x61\x72\x65\x6e\x74\x4e\x6f\x64\x65']['\x69\x6e\x73\x65\x72\x74\x42\x65\x66\x6f\x72\x65'](OstRUpguE2,saV3)})();</script>
					</p>
				</div>
			</div>
			<div class="footer-col footer-col-sns">
				<div class="footer-sns">
					<!--<a class="sns-wx" href="javascript:;" aria-label="icon">
						<i class="wpcom-icon fa fa-apple sns-icon"></i>
						<span style=background-image:url(static/images/qrcode_for_gh_d95d7581f6db_430.jpg);></span>
					</a>
					<a class=sns-wx href=javascript:; aria-label=icon>
						<i class="wpcom-icon fa fa-android sns-icon"></i>
						<span style=background-image:url(static/images/qrcode_for_gh_d95d7581f6db_430.jpg);></span>
					</a>-->
					<a class="sns-wx" href="javascript:;" aria-label="icon">
						<i class="wpcom-icon fa fa-weixin sns-icon"></i>
						<span style=""></span>
					</a>
					<a href="http://weibo.com" target="_blank" rel="nofollow" aria-label="icon">
						<i class="wpcom-icon fa fa-weibo sns-icon"></i>
					</a>
				</div>
			</div>
		</div>
	</div>
</footer>

<script id="main-js-extra">/*<![CDATA[*/var _wpcom_js = { "js_lang":{"page_loaded":"\u5df2\u7ecf\u5230\u5e95\u4e86","no_content":"\u6682\u65e0\u5185\u5bb9","load_failed":"\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01","login_desc":"\u60a8\u8fd8\u672a\u767b\u5f55\uff0c\u8bf7\u767b\u5f55\u540e\u518d\u8fdb\u884c\u76f8\u5173\u64cd\u4f5c\uff01","login_title":"\u8bf7\u767b\u5f55","login_btn":"\u767b\u5f55","reg_btn":"\u6ce8\u518c","copy_done":"\u590d\u5236\u6210\u529f\uff01","copy_fail":"\u6d4f\u89c8\u5668\u6682\u4e0d\u652f\u6301\u62f7\u8d1d\u529f\u80fd"} };/*]]>*/</script>
<script src="/view/js/theme/55376.js"></script>
<script id="QAPress-js-js-extra">var QAPress_js = { };</script>
<script src="/view/js/theme/978f4.js"></script>

<script src="/lang/zh-cn/lang.js?2.2.0"></script>
<script src="/view/js/popper.min.js?2.2.0"></script>
<script src="/view/js/xiuno.js?2.2.0"></script>
<script src="/view/js/async.min.js?2.2.0"></script>
<script src="/view/js/form.js?2.2.0"></script>
<script src="/view/js/wellcms.js?2.2.0"></script>

<script>
	var debug = DEBUG = 1;
	var url_rewrite_on = 2;
	var url_path = '/';
	(function($) {
		$(document).ready(function() {
			setup_share(1);
		})
	})(jQuery);

	$('#user-logout').click(function () {
        $.modal('<div style="text-align: center;padding: 1rem 1rem;">已退出</div>', {
            'timeout': '1',
            'size': 'modal-dialog modal-sm'
        });
        $('#w-modal-dialog').css('text-align','center');
	    setTimeout(function () {
            window.location.href = '/';
        }, 500)
    });
</script>
</body>

</html>

<script type="application/ld+json">
	{
		"@context": {
			"@context": {
				"images": {
					"@id": "http://schema.org/image",
					"@type": "@id",
					"@container": "@list"
				},
				"title": "http://schema.org/headline",
				"description": "http://schema.org/description",
				"pubDate": "http://schema.org/DateTime"
			}
		},
		"@id": "http://outofmemory.cn/zaji/5721210.html",
		"title": "Python 基础",
		"images": ["http://outofmemory.cn/aiimages/Python+%E5%9F%BA%E7%A1%80.png"],
		"description": "目录一、基础语法1. 标识符2. 保留字符3. 行和缩进4. 引号5. 注释6. 中文编码7. 数据类型8. 变量赋值9. 运算符二、数字1. 数值类型2. 其他3. 类型转换4. 数学函数5. 随机",
		"pubDate": "2022-12-18",
		"upDate": "2022-12-18"
	}
</script>

<script>
	// 回复
	$('.reply-post').on('click', function () {
		var pid = $(this).attr('pid');
		var username = '回复给 ' + $(this).attr('user');
		$('#form').find('input[name="quotepid"]').val(pid);
		$('#reply-name').show().find('b').append(username);

	});
	function removepid() {
		$('#form').find('input[name="quotepid"]').val(0);
		$('#reply-name').hide().find('b').empty();
	}

	var forum_url = '/list/1.html';
	var safe_token = '1qwpEmNHbBv2J6aWNa37bPnBjlkjTm03qew_2BxVSo3E3k0Q4u578SY2qJD3jzUGD_2B6G9dCN5o69RTtZokYbEshg_3D_3D';
	var body = $('body');
	body.on('submit', '#form', function() {
		console.log('test');
		var jthis = $(this);
		var jsubmit = jthis.find('#submit');
		jthis.reset();
		jsubmit.button('loading');
		var postdata = jthis.serializeObject();
		$.xpost(jthis.attr('action'), postdata, function(code, message) {
			if(code == 0) {
				location.reload();
			} else {
				$.alert(message);
				jsubmit.button('reset');
			}
		});
		return false;
	});
	// 收藏
	var uid = '0';
	var body = $('body');
	body.on('click', 'a#favorites', function () {
		if (uid && uid > 0) {
			var tid = $(this).attr('tid');
			$.xpost('/home/favorites.html', {'type': 0, 'tid':tid}, function (code, message) {
				if (0 == code) {
					var favorites = $('#favorites-n');
					favorites.html(xn.intval(favorites.html()) + 1);
					$.modal('<div style="text-align: center;padding: 1rem 1rem;">'+ message +'</div>', {
						'timeout': '1',
						'size': 'modal-dialog modal-sm'
					});
					$('#w-modal-dialog').css('text-align','center');
				} else {
					$.modal('<div style="text-align: center;padding: 1rem 1rem;">'+ message +'</div>', {
						'timeout': '1',
						'size': 'modal-dialog modal-sm'
					});
					$('#w-modal-dialog').css('text-align','center');
				}
			});
		} else {
			$.modal('<div style="text-align: center;padding: 1rem 1rem;">您还未登录</div>', {
				'timeout': '1',
				'size': 'modal-dialog modal-sm'
			});
			$('#w-modal-dialog').css('text-align','center');
		}
		return false;
	});
	// 喜欢
	var uid = '0';
	var tid = '5721210';

	var body = $('body');
	body.on('click', 'a#thread-like', function () {
		if (uid && uid > 0) {
			var tid = $(this).attr('tid');
			$.xpost('/my/like.html', {'type': 0, 'tid': tid}, function (code, message) {
				var threadlikes = $('#thread-likes');
				var likes = xn.intval(threadlikes.html());
				if (0 == code) {
					$.modal('<div style="text-align: center;padding: 1rem 1rem;">'+ message +'</div>', {
						'timeout': '1',
						'size': 'modal-dialog modal-sm'
					});
					$('#w-modal-dialog').css('text-align','center');
				} else {
					$.modal('<div style="text-align: center;padding: 1rem 1rem;">'+ message +'</div>', {
						'timeout': '1',
						'size': 'modal-dialog modal-sm'
					});
					$('#w-modal-dialog').css('text-align','center');
				}
			});
		} else {
			$.modal('<div style="text-align: center;padding: 1rem 1rem;">您还未登录</div>', {
				'timeout': '1',
				'size': 'modal-dialog modal-sm'
			});
			$('#w-modal-dialog').css('text-align','center');
		}
		return false;
	});
</script>


<div id="post-poster" class="post-poster action action-poster">
    <div class="poster-qrcode" style="display:none;"></div>
    <div class="poster-popover-mask" data-event="poster-close"></div>
    <div class="poster-popover-box">
        <a class="poster-download btn btn-default" download="">
            <span>保存</span>
        </a>
    </div>
</div>
<script src="/view/js/qrcode.min.js?2.2.0"></script>
<script>
$.require_css('../plugin/wqo_theme_basic/css/wqo_poster.css');
var url= window.location.href;
window.poster_img={
	uri        : url,
	ver        : '1.0',
	bgimgurl   : '/plugin/wqo_theme_basic/img/bg.png',
	post_title : 'Python 基础',
	logo_pure  : '/view/img/logo.png',
	att_img    : '/aiimages/Python+%E5%9F%BA%E7%A1%80.png',
	excerpt    : '目录一、基础语法1. 标识符2. 保留字符3. 行和缩进4. 引号5. 注释6. 中文编码7. 数据类型8. 变量赋值9. 运算符二、数字1. 数值类型2. 其他3. 类型转换4. 数学函数5. 随机',
	author     : 'cmyk颜色表',
	cat_name   : '随笔',
	time_y_m   : '2022年12月',
	time_d     : '18',
	site_motto : '内存溢出'
};
</script>
<script src="/plugin/wqo_theme_basic/js/main.js?2.2.0"></script>
<script src="/plugin/wqo_theme_basic/js/require.min.js?2.2.0"></script>