02 2022 档案

摘要:''' 只需要修改数据库连接即可 ''' import pymysql import requests connect = pymysql.Connect( host='140.210.4.73', port=3306, user='twipad_cj', passwd='bj@#twipad_cj 阅读全文
posted @ 2022-02-23 11:38 布都御魂 阅读(225) 评论(0) 推荐(0)
摘要:dict = { 'a': '1', 'b': '2', 'c': '3', 'd': '4'}# 需要加密数据key = 'abcd'keys = ''for i in key: i = dict[i] keys += str(i)print(keys) 阅读全文
posted @ 2022-02-18 14:44 布都御魂 阅读(82) 评论(0) 推荐(0)
摘要:# -*- coding: cp936 -*-import base64src = "明文数据"tgt = base64.b64encode(src.encode('UTF-8'))print(tgt)src = base64.b64decode(tgt).decode('utf-8')print( 阅读全文
posted @ 2022-02-18 14:24 布都御魂 阅读(59) 评论(0) 推荐(0)
摘要:a='lWNuaphrZphoYVNVkpmWmWWYaWZimA=='a=a[::-1]print(a) 阅读全文
posted @ 2022-02-18 11:39 布都御魂 阅读(48) 评论(0) 推荐(0)
摘要:""" author:张鑫 date:2021/7/30 20:39 """ import requests import pymysql connect = pymysql.Connect( host='140.210.4.73', port=3306, user='twipad_cj', pas 阅读全文
posted @ 2022-02-17 10:05 布都御魂 阅读(142) 评论(0) 推荐(0)
摘要:url中含有_o,删除即可 阅读全文
posted @ 2022-02-16 16:45 布都御魂 阅读(166) 评论(0) 推荐(0)
摘要:JSON.parse() :是从一个字符串中解析出 json 对象 //定义一个字符串 var data='{"name":"goatling"}' //解析对象​ ​JSON.parse(data) 结果是: ​name:"goatling" JSON.stringify():是从一个对象中解析出 阅读全文
posted @ 2022-02-16 09:45 布都御魂 阅读(73) 评论(0) 推荐(0)
摘要:import osclasses_path = os.path.expanduser('列表')with open(classes_path, 'r', encoding='UTF-8') as f: class_names = f.readlines()class_names = [c.strip 阅读全文
posted @ 2022-02-15 17:05 布都御魂 阅读(184) 评论(0) 推荐(0)
摘要:import mathimport randomnums = math.floor(1ex * random.random())print(nums) 阅读全文
posted @ 2022-02-15 14:06 布都御魂 阅读(45) 评论(0) 推荐(0)
摘要:1.点击 2.点击 阅读全文
posted @ 2022-02-14 16:31 布都御魂 阅读(6930) 评论(0) 推荐(0)
摘要:1.打开pycharm 2.把jetbrains-agent.jar文件拖入其中 3.按步骤重启程序 阅读全文
posted @ 2022-02-14 14:39 布都御魂 阅读(175) 评论(0) 推荐(0)
摘要:select * from hkby_facebookhistory_abroaddataall where ir_content in (select A.ir_content from((select ir_content from hkby_facebookhistory_abroaddata 阅读全文
posted @ 2022-02-11 11:47 布都御魂 阅读(36) 评论(0) 推荐(0)
摘要:第一行添加 # -*- coding: utf-8 -*- 阅读全文
posted @ 2022-02-09 14:49 布都御魂 阅读(168) 评论(0) 推荐(0)