python基础之内置函数
作者:qianqqqq_lu 时间:2022-02-28 09:15:58
https://docs.python.org/3/library/function.html #python官方网址
# 取绝对值
print(abs(-34))
# 取参数的近似值,精度与版本有关
print(round(3.66))
# 求次方
print(3**5)
print(pow(3,5)) #求3的5次方
# max求最大值
print(max([23,123,13455,14664345,243565]))
# eval 执行表达式
a,b,c=1,2,3
print('动态执行的函数{}'.format(eval('a+b+c'))) #可以调用函数执行
来源:https://blog.csdn.net/weixin_44632711/article/details/120614682
标签:python,基础,内置函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python 标准库 fileinput与文件迭代器
2023-10-31 22:36:50
ipad上运行python的方法步骤
2021-12-06 19:05:36
Python爬虫HTPP请求方法有哪些
2023-07-25 16:55:06
php fopen()函数案例详解
2023-07-16 22:21:26
css样式表实现首写字母大写
2007-10-08 12:11:00
Python3.x爬虫下载网页图片的实例讲解
2022-11-25 23:24:07
![](https://img.aspxhome.com/file/2023/5/76735_0s.jpg)
利用location.hash实现跨域iframe自适应高宽
2009-08-02 20:31:00
PHP echo()函数讲解
2023-06-05 18:50:54
![](https://img.aspxhome.com/file/2023/0/55390_0s.png)
Bootstrap显示与隐藏简单实现代码
2023-08-24 17:30:54
![](https://img.aspxhome.com/file/2023/1/56221_0s.jpg)
python mqtt 客户端的实现代码实例
2021-11-05 16:04:09
详细解读php的命名空间(一)
2023-06-19 08:02:59
ASP关于SQL插入数据后获得当前ID
2010-01-24 19:55:00
Python 识别12306图片验证码物品的实现示例
2021-04-03 22:17:24
![](https://img.aspxhome.com/file/2023/0/92340_0s.png)
ASP与Excel结合生成数据表和Chart图的代码
2011-03-08 10:50:00
三分钟学会Sql Server的复制功能[图]
2008-07-18 12:18:00
![](https://img.aspxhome.com/file/UploadPic/20087/18/2008718122618221s.gif)
Python中的Cookie模块如何使用
2023-04-12 15:54:46
Script块放在另一个Script 块内方法
2009-02-04 15:43:00
SQL Server导出表到EXCEL文件的存储过程
2009-01-06 11:24:00
python利用正则表达式搜索单词示例代码
2023-02-21 11:31:03
重新认识ASP之后的我在想"是时候改变了"
2008-05-08 13:10:00