用户:
phigros云女孩查看:3 回复:2 评论:3 创建时间:2022-05-22T19:21:12
【作品展示】

【作品介绍】
不能大于十进制
【作品源代码】
b = int(input('请输入该数'))
c = int(input('请输入要转化成几进制'))
e = b
f = e
while True:
b = (e / c)
e = math.floor(e / c)
if (e != 0):
d = (f % c)
print(d)
else:
if (b != 0):
print(f)
else:
print(0)
break
f = e
print('ok')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn别在意作品展示,这个程序可运用在数学和进制转换,后续会更新出十进制以上和其他进制转十进制,喜欢的请在点猫社区帮我点赞,收藏加关注,感谢支持imgsr喵demao.cn/emotion/star_cat/%E7%88%B1%E4%BD%A0.gif"alt="emotion_星能猫_爱你"
点赞0
评论