题解 1083: Hello, world!

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

ASCII码转字母

解题思路:将ASCII码转为字母用函数chr(),列表和字符串的连接都可以用+注意事项:输入两行要接在一起,输出要输出一行参考代码:L=list(map(int,input().split()))L1=list(map(int,input().split()))s=''foriinL+

1083——————Hello,World!

题目1083:Hello,world!**题目描述**Thisisthefirstproblemfortest.SinceallweknowtheASCIIcode,yourjobissimple:Inputnumbersandoutputcorrespondingmessages.——翻译(来源百度

Hello,world!

摘要:```python m = [int(i) for i in input().split()] n = [int(i) for i in input().split()] s = "" for……

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(

Hello, world!-题解(Python代码)

注意事项:输入有一个回车,写两次input参考代码:num_list1=map(int,input().strip().split())num_list2=map(int,input().strip().split())foriinnum_list1:print(chr(i),

Hello, world!-题解(Python代码)

python中没有像c语言一样直接判断输入EOF的语句所以用sys.stdin来代替EOF输入importsyswhileTrue:line=sys.stdin.readline()ifnotline:breakfor_inline.split():print(chr(int(_)),end='')

Hello, world!-题解(Python代码) python

chr()用一个范围在range(256)内的(就是0~255)整数作参数,**返回一个对应的字符**```pythondeff(arr):#定义函数arr=[int(i)foriinarr]#字符转换为整型foriinarr:print(chr(i),