Tue Apr 18 15:31:44 UTC 2023 inscode

上级 df352508
{ pkgs }: {
deps = [
pkgs.python310Packages.pip
pkgs.python310Full
];
}
\ No newline at end of file
h_data= input("请输入十六进制数: ");
print("十六进制数为:",h_data);
data = int(h_data,16);
print("对应二进制数是:",data);
b_data = bin(data);
print("对应二进制数是:",b_data);
\ No newline at end of file
print('欢迎来到 InsCode')
\ No newline at end of file
h_data= input("请输入十六进制数: ");
print("十六进制数为:",h_data);
data = int(h_data,16);
print("对应二进制数是:",data);
b_data = bin(data);
print("对应二进制数是:",b_data);
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册