|
发表于 2021-7-28 16:39:18
|
显示全部楼层
请回复您的答案^_^
>>>>> 问答题 <<<<<
第 0 题的答案是:没毛病
第 1 题的答案是:程序将\及后面字母理解为转义字符,应改为print(r"C:\Users\goodb\Desktop")
第 2 题的答案是:长字符串或原始字符串
第 3 题的答案是:无法比较,因为‘123’是字符,256是数字
第 4 题的答案是:
A Traceback (most recent call last):
File "<pyshell#61>", line 1, in <module>
'123' + 256
TypeError: can only concatenate str (not "int") to str
B '123256'
C '123123123'
D Traceback (most recent call last):
File "<pyshell#64>", line 1, in <module>
'123' - '12'
TypeError: unsupported operand type(s) for -: 'str' and 'str'
>>>>> 动动手 <<<<<
请将第 0 题的代码写在下方:
fishc='''
___ ___ ___ ___
/\ \ ___ /\ \ /\__\ /\ \
/::\ \ /\ \ /::\ \ /:/ / /::\ \
/:/\:\ \ \:\ \ /:/\ \ \ /:/__/ /:/\:\ \
/::\~\:\ \ /::\__\ _\:\~\ \ \ /::\ \ ___ /:/ \:\ \
/:/\:\ \:\__\ __/:/\/__//\ \:\ \ \__\/:/\:\ /\__\/:/__/ \:\__\
\/__\:\ \/__//\/:/ / \:\ \:\ \/__/\/__\:\/:/ /\:\ \ \/__/
\:\__\ \::/__/ \:\ \:\__\ \::/ / \:\ \
\/__/ \:\__\ \:\/:/ / /:/ / \:\ \
\/__/ \::/ / /:/ / \:\__\
\/__/ \/__/ \/__/
'''
print(fishc)
请将第 1 题的代码写在下方:
print(i,"*",j,"=",i*j,"\t")
print("\n") |
|