我有这一块解码消息的,它是一门功课,但我解决不了,该消息是 IZWGCZZ2EBAUWRSVOJAU45DSOVCEOZKS N5CHKQLSM5GGSQ2VNVIECUSEIU====== 有一个提示说The string is encoded using an unusual number base. The numbers 2 - 7 are represented and the lett
package code;
public class convert {
public int getPower(int power, int base){
int ans = 1;
for(int i=0; i<power; i++){
ans = ans * base;
}
return ans;
}
public int b
public class A
{
public A()
{
// DoSomething
// If something is not correct return null;
}
}
public class B : A
{
public B() :base()
{
// Check if every
我已经问过关于这个问题的类似问题,但仅限于从0到15的数字列表。我想过如何将数字从0转换为15以上。这里是我写的到目前为止 def base_convert(i, b):
result = []
for i in range(20):
while i > 0:
result.insert(0, i % b)
i = i // b