Hello, world!-题解(Python代码) python chr()用一个范围在range(256)内的(就是0~255)整数作参数,**返回一个对应的字符**```pythondeff(arr):#定义函数arr=[int(i)foriinarr]#字符转换为整型foriinarr:print(chr(i), 题解列表 2019年11月22日 0 点赞 0 评论 1861 浏览 评分:4.8
Hello, world!-题解(Python代码) python中没有像c语言一样直接判断输入EOF的语句所以用sys.stdin来代替EOF输入importsyswhileTrue:line=sys.stdin.readline()ifnotline:breakfor_inline.split():print(chr(int(_)),end='') 题解列表 2019年11月24日 0 点赞 2 评论 2146 浏览 评分:9.0
Hello, world!-题解(Python代码) 摘要: n = list(map(int,input().split())) while min(n)>=32: try: n.extend(ma…… 题解列表 2021年01月21日 0 点赞 1 评论 1237 浏览 评分:7.0
Hello, world!-题解(Python代码) 注意事项:输入有一个回车,写两次input参考代码:num_list1=map(int,input().strip().split())num_list2=map(int,input().strip().split())foriinnum_list1:print(chr(i), 题解列表 2021年02月18日 0 点赞 0 评论 690 浏览 评分:6.7
Hello, world!-题解(python代码) 解题思路:注意事项:参考代码:lst=list(map(str,input().split()))lst2=list(map(str,input().split()))lst.extend(lst2)foriinrange(len(lst)):lst[i]=chr(int(lst[i]))print( 题解列表 2022年01月26日 0 点赞 0 评论 853 浏览 评分:9.5
Hello,world! 摘要:```python m = [int(i) for i in input().split()] n = [int(i) for i in input().split()] s = "" for…… 题解列表 2022年02月23日 0 点赞 0 评论 901 浏览 评分:9.9
!!!记住多行输入的方法!!! 摘要:解题思路:注意事项:参考代码:import syswhile True: line=sys.stdin.readline() if not line: break fo…… 题解列表 2022年06月20日 0 点赞 0 评论 559 浏览 评分:0.0
1083——————Hello,World! 题目1083:Hello,world!**题目描述**Thisisthefirstproblemfortest.SinceallweknowtheASCIIcode,yourjobissimple:Inputnumbersandoutputcorrespondingmessages.——翻译(来源百度 题解列表 2022年08月09日 0 点赞 0 评论 1114 浏览 评分:0.0
ASCII码转字母 解题思路:将ASCII码转为字母用函数chr(),列表和字符串的连接都可以用+注意事项:输入两行要接在一起,输出要输出一行参考代码:L=list(map(int,input().split()))L1=list(map(int,input().split()))s=''foriinL+ 题解列表 2023年03月17日 0 点赞 0 评论 610 浏览 评分:0.0