上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 49 下一页
摘要: 一、示例 ''' 添加 add_section(section) 向实例添加一个section set(section, option, value) 如果给定的部分存在,将给定的选项设置为指定的值 optionxform(option) 也可以在一个实例上重新设置它,对于一个需要字符串参数的函数。 阅读全文
posted @ 2022-10-17 09:03 样子2018 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 一、代码 # -*- coding: utf-8 -*- import logging class Logger(): def __init__(self,level="DEBUG"): # 创建日志器对象 self.logger = logging.getLogger(__name__) self 阅读全文
posted @ 2022-10-15 16:14 样子2018 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 一、下载 http://www.winwin7.com/soft/12461.html 二、效果图 阅读全文
posted @ 2022-10-11 10:51 样子2018 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 一、函数 1、函数定义 def 函数名(): 代码 2、函数的参数 # 缺省参数 def test1(name, age=18): print(name, age) test1("yy", age=28) # 不定长参数 # 加了星号(*)的变量args会存放所有未命名的变量参数,args为元组;而 阅读全文
posted @ 2022-10-10 14:35 样子2018 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 一、列表 # len(list)列表元素个数 # max(list)返回列表元素最大值 # min(list)返回列表元素最小值 # list(seq)将元组转换为列表 # list.append(obj)在列表末尾添加新的对象 # list.count(obj)统计某个元素在列表中出现的次数 # 阅读全文
posted @ 2022-10-10 12:16 样子2018 阅读(49) 评论(0) 推荐(0) 编辑
摘要: # clear() 清除字典。 # get() ​如果键存在于字典中,则返回该键的值。 # items()​ 返回字典中的键值对列表。 # keys() 返回字典中的键列表。 # values()​ 返回字典中的值列表。 # pop()​ 从字典中删除一个键,如果它存在,并返回它的值。如果存在于字典 阅读全文
posted @ 2022-10-10 12:11 样子2018 阅读(117) 评论(0) 推荐(0) 编辑
摘要: # 1、index(value, start, end):在区间查找value出现的位置索引。 # 2、count(value):计算元组中value元素出现的个数。 # index和count与字符串和列表中的用法相同 if __name__ == "__main__": t1 = ("1", 1 阅读全文
posted @ 2022-10-10 10:57 样子2018 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 代码只能作为学习,请不要用于其他。 一、效果图 二、代码编写 1、items.py # -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https:// 阅读全文
posted @ 2022-10-10 08:42 样子2018 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一、安装插件 npm i dplayer -S npm i hls.js -S 二、代码示例 <template> <view class="content"> <div id="dplayer" style="height: 450px; width: 800rpx;"></div> </view 阅读全文
posted @ 2022-09-22 16:33 样子2018 阅读(1539) 评论(0) 推荐(0) 编辑
摘要: 一、sqlite3封装 <?php class SQLiteDB extends SQLite3 { function __construct(){ try { //打开数据库文件 $this->open('./ccfcf4572e60f80522c1cf0f8e4b95c3.db'); }catc 阅读全文
posted @ 2022-09-16 10:49 样子2018 阅读(316) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 49 下一页