add my name
This commit is contained in:
parent
039d05bdc0
commit
10dbf2c1cb
|
@ -3,3 +3,5 @@ a = int(s, 2)
|
|||
print(oct(a)[2:])
|
||||
print(a)
|
||||
print(hex(a)[2:])
|
||||
|
||||
#code by Luthics
|
|
@ -24,3 +24,5 @@ print(bin(int(a, 2) | int(b, 2))[2:])
|
|||
for i in range(4 - len(bin(int(a, 2) ^ int(b, 2))[2:])):
|
||||
print("0", end="")
|
||||
print(bin(int(a, 2) ^ int(b, 2))[2:])
|
||||
|
||||
#code by Luthics
|
|
@ -29,3 +29,5 @@ else:
|
|||
print(ori)
|
||||
print(fan)
|
||||
print(bu)
|
||||
|
||||
#code by Luthics
|
|
@ -50,3 +50,5 @@ print(oct(int(a))[2:],end="")
|
|||
print(octx(a))
|
||||
print(hex(int(a))[2:],end="")
|
||||
print(hexx(a))
|
||||
|
||||
#code by Luthics
|
|
@ -2,3 +2,5 @@ s= input()
|
|||
print(bin(ord(s))[2:])
|
||||
print(oct(ord(s))[2:])
|
||||
print(hex(ord(s))[2:])
|
||||
|
||||
#code by Luthics
|
|
@ -8,3 +8,5 @@ print(hex(int(b)+32+128)[2:],end="H\n")
|
|||
|
||||
# 20H -> 32
|
||||
# 80H -> 128
|
||||
|
||||
#code by Luthics
|
|
@ -7,3 +7,5 @@ elif (s == '嬷'):
|
|||
print("e6 d6\ne5 ac b7")
|
||||
|
||||
# 我没有词典文件,先这样吧
|
||||
|
||||
#code by Luthics
|
|
@ -12,3 +12,5 @@ if (len(cf) > 0):
|
|||
print(i, end="")
|
||||
else:
|
||||
print("False")
|
||||
|
||||
#code by Luthics
|
|
@ -19,3 +19,5 @@ elif (a == 7):
|
|||
print("{:.2f}".format(x**(1 / y)))
|
||||
elif (a == 8):
|
||||
print("{:.2f}".format(log(x) / log(y)))
|
||||
|
||||
#code by Luthics
|
|
@ -3,3 +3,5 @@ print(bin(int(a, 2) + int(b, 2))[2:])
|
|||
for i in range(4 - len(bin(int(a, 2) & int(b, 2))[2:])):
|
||||
print("0", end="")
|
||||
print(bin(int(a, 2) & int(b, 2))[2:])
|
||||
|
||||
#code by Luthics
|
Loading…
Reference in New Issue