- 博客(2)
- 收藏
- 关注
原创 python_demo
# -*- coding: utf-8 -*-"""@author:lyf@file:test_random_other_demo.py@date:06/21 18:32"""import randomimport stringdef test_phone_PWD(): a =["137","157","186"] #随机生成 137 157 186开头的手机号 phone=random.choice(a)+str(random.randint(10000000,99
2021-06-22 13:17:16 46
原创 python递归算法
def fact(n): if n >= 5: return 2 return n * fact(n +1)print(fact(1))# 5 * 4*3*2*1=120 n * fact(n -1)#1 *2*3*4* 2=24
2021-06-05 17:46:00 45
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人