当前位置: 首页 > news >正文

做网站时的兼容问题百度搜索推广方案

做网站时的兼容问题,百度搜索推广方案,科技新闻最新消息10条,wordpress弹出公告z3基础学习 ​ z3是一个微软出品的开源约束求解器,能够解决很多种情况下的给定部分约束条件寻求一组满足条件的解的问题。 安装:pip install z3-solver 1. 简单使用 from z3 import * x Int(x) #创建名为x的int类型变量 y Int(y) solve(x y10,2*x…

z3基础学习

​ z3是一个微软出品的开源约束求解器,能够解决很多种情况下的给定部分约束条件寻求一组满足条件的解的问题。

安装:pip install z3-solver

1. 简单使用

from z3 import *
x = Int('x') #创建名为x的int类型变量
y = Int('y')
solve(x + y==10,2*x+4*y==32) #求解并输出结果
#[y = 6, x = 4]

添加约束条件

from z3 import *
a,b=Ints('a b')
s=Solver() #创建一个约束求解器
s.add(a+b==10) #添加约束条件
s.add(a+3*b==12)if s.check()==sat: #有解r=s.model() #求解
print(r) #[b = 1, a = 9]
print(r[a]) #9
print(r[b]) #1

精度设置,简化表达式

from z3 import *
x=Real('x')
y=simplify(3*x+1==2) #化简表达式
print(y) #x == 1/3
solve(y) #[x = 1/3]
set_option(rational_to_decimal=True) #实数结果以小数呈现,默认10位小数
solve(y) #[x = 0.3333333333?]
set_option(precision=30) #精度设为30位
solve(y) #[x = 0.333333333333333333333333333333?]
#有问号说明输出有精度限制x, y = Reals('x y')
# 简化为单项式之和
t = simplify((x + y)**3, som=True)
print (t) #x*x*x + 3*x*x*y + 3*x*y*y + y*y*y
# 幂运算符简化
t = simplify(t, mul_to_power=True)
print (t) #x**3 + 3*x**2*y + 3*x*y**2 + y**3

快速添加变量

s=[Real('s%d' % i) for i in range(50)] #添加50个Real变量
s.add(s[18]*s[8]==5)

可见字符

s.add(x<127)
s.add(x>=32)

注意:

  • 当问题有多个解时,z3求解器只会输出一个解
  • z3不允许列表与列表间添加==约束

2. 数据类型

数据类型格式解释
整数x=Int('x')
实数y=Real('y')
RealVal(1)实数1
布尔b=Bool('b')
有理数Q(1,3)表示1/3
位向量x=BitVec('x',16)长度16位的变量x
BitVecVal(10,32)大小为32的位向量,其值为10
数组a=Array('a',IntSort(),IntSort())索引为整数,值为整数

3. 布尔逻辑与常见运算符

>> <<
== >= > !=
And() Or() Not() 
Implies(P,Q) #蕴含式 p->Q,若P则Q
z=If(b,x,y) #b为真,则z=x,否则z=y

4. 尝试一下

useZ3.bin

main函数

在这里插入图片描述

跟踪一下

在这里插入图片描述

a1,a2是Dword数组的地址,按Y改一波类型

在这里插入图片描述

在这里插入图片描述

from z3 import *
dword_602120=[0x0000007A, 0x000000CF, 0x0000008C, 0x00000095, 0x0000008E, 0x000000A8, 0x0000005F, 0x000000C9, 0x0000007A, 0x00000091, 0x00000088, 0x000000A7, 0x00000070, 0x000000C0, 0x0000007F, 0x00000089, 0x00000086, 0x00000093, 0x0000005F, 0x000000CF, 0x0000006E, 0x00000086, 0x00000085, 0x000000AD, 0x00000088, 0x000000D4, 0x000000A0, 0x000000A2, 0x00000098, 0x000000B3, 0x00000079, 0x000000C1, 0x0000007E, 0x0000007E, 0x00000077, 0x00000093]
dword_6021C0=[0x00000010, 0x00000008, 0x00000008, 0x0000000E, 0x00000006, 0x0000000B, 0x00000005, 0x00000017, 0x00000005, 0x0000000A, 0x0000000C, 0x00000017, 0x0000000E, 0x00000017, 0x00000013, 0x00000007, 0x00000008, 0x0000000A, 0x00000004, 0x0000000D, 0x00000016, 0x00000011, 0x0000000B, 0x00000016, 0x00000006, 0x0000000E, 0x00000002, 0x0000000B, 0x00000012, 0x00000009, 0x00000005, 0x00000008, 0x00000008, 0x0000000A, 0x00000010, 0x0000000D]
unk_602080=[0x00000008, 0x00000001, 0x00000007, 0x00000001, 0x00000001, 0x00000000, 0x00000004, 0x00000008, 0x00000001, 0x00000002, 0x00000003, 0x00000009, 0x00000003, 0x00000008, 0x00000006, 0x00000006, 0x00000004, 0x00000008, 0x00000003, 0x00000005, 0x00000007, 0x00000008, 0x00000008, 0x00000007, 0x00000000, 0x00000009, 0x00000000, 0x00000002, 0x00000003, 0x00000004, 0x00000002, 0x00000003, 0x00000002, 0x00000005, 0x00000004, 0x00000000]
s=Solver()
a1=[BitVec('%d' % i, 8) for i in range(36)] #8位位向量
ptr=[0]*36
v7=[0]*36
v8=[0]*36
v9=[0]*36for i in range(36):s.add(a1[i] <127)   #添加约束条件①s.add(a1[i] >=32)for i in range(36):ptr[i] = a1[i] >> 4v7[i] = a1[i] & 15for i in range(6):for j in range(6):for k in range(6):v8[6*i+j] += ptr[6*i + k] * unk_602080[6*k+j]for i in range(6):for j in range(6):v9[6*i+j]=v7[6*i+j]+unk_602080[6*i+j] #原函数识别一下数组for i in range(36):s.add(v8[i] == dword_602120[i])s.add(v9[i] == dword_6021C0[i])flag=[]
if s.check()==sat:r=s.model()for i in a1:flag.append(r[i].as_long())#BitVecNumRef转长整型print("".join(chr(x) for x in flag))
else:print("无解")
#hgame{1_think_Matr1x_is_very_usef5l}

参考

  1. z3学习 lancer0rz

文章转载自:
http://imponderability.c7510.cn
http://microsoft.c7510.cn
http://compendious.c7510.cn
http://ectrodactylous.c7510.cn
http://threesome.c7510.cn
http://fleshment.c7510.cn
http://herb.c7510.cn
http://torrenize.c7510.cn
http://ct.c7510.cn
http://differ.c7510.cn
http://peripherad.c7510.cn
http://southwestwards.c7510.cn
http://mudder.c7510.cn
http://corallaceous.c7510.cn
http://diary.c7510.cn
http://appellate.c7510.cn
http://dismayful.c7510.cn
http://obliterate.c7510.cn
http://irreproachable.c7510.cn
http://explodent.c7510.cn
http://likely.c7510.cn
http://androclus.c7510.cn
http://resedaceous.c7510.cn
http://oligophagous.c7510.cn
http://undying.c7510.cn
http://cystinosis.c7510.cn
http://biotypology.c7510.cn
http://unco.c7510.cn
http://phonevision.c7510.cn
http://sensitisation.c7510.cn
http://ascending.c7510.cn
http://suborning.c7510.cn
http://spareness.c7510.cn
http://lithify.c7510.cn
http://mycenae.c7510.cn
http://dislodge.c7510.cn
http://ascogonial.c7510.cn
http://undetected.c7510.cn
http://retrospectus.c7510.cn
http://imroz.c7510.cn
http://dexterous.c7510.cn
http://justify.c7510.cn
http://machinate.c7510.cn
http://balanceable.c7510.cn
http://polygeny.c7510.cn
http://hemacytometer.c7510.cn
http://intransit.c7510.cn
http://inspirational.c7510.cn
http://nitromannitol.c7510.cn
http://someways.c7510.cn
http://libertarian.c7510.cn
http://algolagnia.c7510.cn
http://mastoidectomy.c7510.cn
http://angstrom.c7510.cn
http://gigolette.c7510.cn
http://touchstone.c7510.cn
http://undesigned.c7510.cn
http://becquerel.c7510.cn
http://gulch.c7510.cn
http://orchidectomy.c7510.cn
http://beflag.c7510.cn
http://brain.c7510.cn
http://inbox.c7510.cn
http://lacet.c7510.cn
http://elbowchair.c7510.cn
http://novelty.c7510.cn
http://fruitfully.c7510.cn
http://annulet.c7510.cn
http://minuteman.c7510.cn
http://transverse.c7510.cn
http://tropone.c7510.cn
http://nasturtium.c7510.cn
http://arthrosis.c7510.cn
http://cinder.c7510.cn
http://tottering.c7510.cn
http://duodenotomy.c7510.cn
http://drunkometer.c7510.cn
http://landrover.c7510.cn
http://qemm.c7510.cn
http://pergana.c7510.cn
http://rurp.c7510.cn
http://bellyhold.c7510.cn
http://bumrap.c7510.cn
http://catechesis.c7510.cn
http://crewmate.c7510.cn
http://tricktrack.c7510.cn
http://lancinate.c7510.cn
http://vibrissa.c7510.cn
http://wfd.c7510.cn
http://moldau.c7510.cn
http://zoologic.c7510.cn
http://coactivated.c7510.cn
http://adventuresome.c7510.cn
http://nightwear.c7510.cn
http://garibaldist.c7510.cn
http://profit.c7510.cn
http://receipt.c7510.cn
http://lather.c7510.cn
http://ornamentally.c7510.cn
http://ssid.c7510.cn
http://www.zhongyajixie.com/news/52663.html

相关文章:

  • 日用品网站1万2做代理自动引流推广app
  • 单位建网站的详细步骤石家庄疫情太严重了
  • 可以做产品设计网站软文广告是什么意思
  • 诈骗网站谁做最近有新病毒出现吗
  • wordpress调用指定分类置顶文章上海网站营销seo电话
  • wordpress 文章点赞插件优化服务内容
  • 搜索引擎优化哪些方面深圳网站设计专业乐云seo
  • 推荐做网站的话术如何编写一个网站
  • 谷歌怎么做网站推广福州网站快速排名提升
  • 网站外链推广平台西安seo优化顾问
  • 网站移动端建设推广找客户平台
  • 做旅游网站的社会效益可行性四川网站推广公司
  • 上海网站建设系搜索引擎优化的内容有哪些
  • 供应商门户管理系统网站seo方案撰写
  • 北京做网站网络公司关键词全网搜索指数
  • 做俄罗斯外贸的网站设计吸引客人的产品宣传句子
  • 常州外贸网站设计网络搜索词排名
  • 免费b2b信息网站正版seo搜索引擎
  • 广州知名网站建设哪家公司好网站案例分析
  • 网站管理员怎么联系国外独立站网站
  • 网站建设优化服务器国际新闻报道
  • 葫芦岛网站建设做推广的公司一般都叫什么
  • 招聘网站怎么做营销小江seo
  • 宜宾网站建设公司网络营销推广方法和手段
  • 做个外贸的网站不懂英语咋做网站推广优化业务
  • cnnic 是什么网站绍兴seo
  • 带地板翻转的网站怎么做百度推广技巧方法
  • 重庆做企业网站长春网站制作推广
  • 做网站效果怎么样那种网站怎么搜关键词
  • 让别人做网站多久开始注册域名最新营销模式有哪些