1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def fun(a): b = "" for i in a: b += i b += ' ' print(b…… 题解列表 2022年02月21日 0 点赞 0 评论 178 浏览 评分:0.0
format方法... 摘要:解题思路:注意事项:参考代码:a,b,c,d = map(int,input())print('{} {} {} {}'.format(a,b,c,d))…… 题解列表 2023年10月13日 0 点赞 0 评论 137 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方 摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有…… 题解列表 2022年11月23日 0 点赞 0 评论 304 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def function(x): return print(' '.join(x)) if __name__ == '__main…… 题解列表 2024年04月18日 0 点赞 0 评论 181 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:n = input(str())for i in n: print(i,end = ' ')…… 题解列表 2022年04月07日 0 点赞 0 评论 344 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def fenli(a): for i in a: print(i,end=' ')a = input()fenli(a)…… 题解列表 2024年06月03日 0 点赞 0 评论 257 浏览 评分:0.0
自定义函数之数字分离-题解 摘要:解题思路:注意事项:注意:replace (""," ")如果写在end=" 之前会提示格式错误参考代码:def fenli(inp): #定义字符分离函数 …… 题解列表 2022年03月02日 0 点赞 0 评论 172 浏览 评分:0.0
[编程入门]自定义函数之数字分离-题解(Python代码) 摘要:解题思路:注意事项:参考代码:sentence = input()print(sentence.replace(""," ").strip())…… 题解列表 2022年01月07日 0 点赞 0 评论 220 浏览 评分:0.0
[编程入门]自定义函数之数字分离 Python解决 摘要:解题思路: 遍历即可参考代码:number = input()for i in number: print(i,end=" ")…… 题解列表 2021年08月20日 0 点赞 0 评论 202 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离(phthon代码) 摘要:解题思路:很简单的一个函数,直接打印出来就好了。其实不用函数更简单的。你可以试试注意事项:参考代码:def main(list): for value in list: pri…… 题解列表 2021年07月08日 0 点赞 0 评论 262 浏览 评分:0.0