02 2022 档案
摘要:''' 只需要修改数据库连接即可 ''' import pymysql import requests connect = pymysql.Connect( host='140.210.4.73', port=3306, user='twipad_cj', passwd='bj@#twipad_cj
阅读全文
摘要:dict = { 'a': '1', 'b': '2', 'c': '3', 'd': '4'}# 需要加密数据key = 'abcd'keys = ''for i in key: i = dict[i] keys += str(i)print(keys)
阅读全文
摘要:# -*- coding: cp936 -*-import base64src = "明文数据"tgt = base64.b64encode(src.encode('UTF-8'))print(tgt)src = base64.b64decode(tgt).decode('utf-8')print(
阅读全文
摘要:a='lWNuaphrZphoYVNVkpmWmWWYaWZimA=='a=a[::-1]print(a)
阅读全文
摘要:""" 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
阅读全文
摘要:JSON.parse() :是从一个字符串中解析出 json 对象 //定义一个字符串 var data='{"name":"goatling"}' //解析对象 JSON.parse(data) 结果是: name:"goatling" JSON.stringify():是从一个对象中解析出
阅读全文
摘要:import osclasses_path = os.path.expanduser('列表')with open(classes_path, 'r', encoding='UTF-8') as f: class_names = f.readlines()class_names = [c.strip
阅读全文
摘要:import mathimport randomnums = math.floor(1ex * random.random())print(nums)
阅读全文
摘要:1.打开pycharm 2.把jetbrains-agent.jar文件拖入其中 3.按步骤重启程序
阅读全文
摘要:select * from hkby_facebookhistory_abroaddataall where ir_content in (select A.ir_content from((select ir_content from hkby_facebookhistory_abroaddata
阅读全文
摘要:第一行添加 # -*- coding: utf-8 -*-
阅读全文