您好,欢迎访问一九零五行业门户网

python - 此段PY代码可以帮忙转换成PHP?

作为py菜鸟的我看这py代码等于是天书一样,大家可以帮忙转换成php吗?
def str2hex(s): r= for i in s[:8]: t=hex(ord(i))[2:] if len(t)==1: t=0+t r+=t for i in range(16): r+=hex(int(15*random()))[2:] return r def getkey(s): #returns 1896220160 l2=[i for i in s] l4=0 l3=0 while l4
回复内容: 作为py菜鸟的我看这py代码等于是天书一样,大家可以帮忙转换成php吗?
def str2hex(s): r= for i in s[:8]: t=hex(ord(i))[2:] if len(t)==1: t=0+t r+=t for i in range(16): r+=hex(int(15*random()))[2:] return r def getkey(s): #returns 1896220160 l2=[i for i in s] l4=0 l3=0 while l4
代码写得好不专业。。。
其它类似信息

推荐信息