# 练习
# 请利用print()输出1024 * 768 = xxx
print('1024*768=',1024*768)
print(r'''hello,\n
word''')
print('''line1
line2
line3''')
age=int(input("请输入您的年龄"))
if age>=18:
print("too old!")
else:
print("too young!")
a='ABC'
b=a
a='XYZ'
print(b)
# 请打印出以下变量的值:
n = 123
f = 456.789
s1 = 'Hello, world'
s2 = 'Hello, \'Adam\''
s3 = r'Hello, "Bart"'
s4 = r'''Hello,
Lisa!'''
print('''n = 123
f = 456.789
s1 = \'Hello, world\'
s2 = 'Hello, \\\'Adam\\\''
s3 = r\'Hello, \"Bart\"'
s4 = r\'''Hello,\nLisa!\'''
''')
网友评论