ICode9

精准搜索请尝试: 精确搜索
  • checkio(一)2022-02-07 11:05:19

    Multiply(Intro) Write a function that will receive 2 numbers as input and it should return the multiplication of these 2 numbers. Input: Two arguments. Both are of type int. Output: Int. Example: mult_two(2, 3) == 6 mult_two(1, 0) == 0 code: def mult_tw

  • 【py.checkio】【HOME】Between Markers2021-12-25 15:05:27

    题目:在text中找出begin,end之间的子字符串; 我的代码: def between_markers(text: str, begin: str, end: str) -> str: """ returns substring between two given markers """ # your code here if begin not in text and end not

  • checkio练习题归纳----Replace First2021-11-27 10:59:40

    题目描述: 大概的意思就是将列表中的第一个元素放到列表的最后面,一个元素的列表或者空列表返回列表本身。 题解1: 思路:使用列表中的pop()方法将第一个值弹出并返回,返回的值使用列表中的append()方法添加入items列表中,这样就可以实现将列表的第一个值放在最后面,因为当列表为空时

  • python练习之CheckiO-ELEMENTARY小岛2021-06-13 23:57:39

    End Zeros Try to find out how many zeros a given number has at the end. Example: end_zeros(0) == 1 end_zeros(1) == 0 end_zeros(10) == 1 end_zeros(101) == 0 #我的答案 def end_zeros(num: int) -> int: # your code here num=str(num) llen=len(num)

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有