![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
purpuck
这个作者很懒,什么都没留下…
展开
-
python string
import stringstr_1="a customary way of operation or behavior it is their practice to give annual raises "str_2='spell Create Database num'str_3='spell'sss=["hello",'buy','get']#截取元素、分割print(str_1[5])print(str_1[:5])print(str_1[5:])print(str_1[5:1.原创 2020-11-08 16:30:23 · 136 阅读 · 0 评论 -
python math类
import math#弧度、角度的转换print(math.degrees(math.pi))print(math.radians(180))#三角函数(正弦、反正弦、余弦)print(math.sin(math.pi/3))print(math.cos(math.pi/2-math.pi/3))print(math.tan(math.pi/4))# 反正弦、反余弦、反正切print(math.asin(math.sin(math.pi/3)))print(math.acos(math原创 2020-11-08 11:13:07 · 2233 阅读 · 4 评论