10 2020 档案

python求最大公约数和最小公倍数
摘要:1 def gcd(x,y): 2 while(y): 3 t=x%y 4 x=y 5 y=t 6 #print("最小公倍数是:",x*y/x)#最小公倍数是两数之积除以最大公约数 7 return x 阅读全文

posted @ 2020-10-28 16:38 lmqljt 阅读(989) 评论(0) 推荐(0)

Python split()方法
摘要:参考:https://www.runoob.com/python/att-string-split.html,https://www.cnblogs.com/liujiacai/p/7839971.html Python split() 通过指定分隔符对字符串进行切片,如果参数 num 有指定值,则 阅读全文

posted @ 2020-10-27 15:14 lmqljt 阅读(725) 评论(0) 推荐(0)

实现字符翻转参考
摘要:https://www.jb51.net/article/135153.htm https://www.jb51.net/article/125055.htm 阅读全文

posted @ 2020-10-26 14:01 lmqljt 阅读(103) 评论(0) 推荐(0)

导航