会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
html5syt
Blog
管理
2022年9月28日
Python开平方
摘要: 如题,如何使用Python开平方 1. 最简单的方法 将某个数乘以0.5次方 sqrtin=float(input(正数:)) sqrtout=sqrtin**0.5 print('平方根:',sqrtout) 2. 使用内置库math import math sqrtin=float(input(
阅读全文
posted @ 2022-09-28 23:31 html5syt
阅读(2513)
评论(0)
推荐(0)
公告