print("fg"*10)
fgfgfgfgfgfgfgfgfgfg
a="""离离原上草,
一岁一枯荣"""
print(a)
离离原上草,
一岁一枯荣
print(123456789)
123456789
x=5
y=10
print(x>y)
False
print(y>x)
True
a,b,c,d,e=1,2,3,4,5
print(a+b+c+d+e)
15
print("离离原上草,\n一岁一枯荣")
离离原上草,
一岁一枯荣
print("离离原上草,\t一岁一枯荣")
离离原上草, 一岁一枯荣
print(r"离离原上草,\t一岁一枯荣")
离离原上草,\t一岁一枯荣
a="在不在"
b="不在"
print(a,"\n",b)
在不在
不在
a="1,2,3,4"
print((type)a)
SyntaxError: invalid syntax. Perhaps you forgot a comma?
a="1,2,3,4"
print((Type)a)
SyntaxError: multiple statements found while compiling a single statement
a=1314.1314
b=int(a)
print(b)
SyntaxError: invalid character ')' (U+FF09)
a=1314.1314
b=int(a)
print(b)
SyntaxError: multiple statements found while compiling a single statement
a=13.14
print(int(a))
13
print(type(a))
<class 'float'>
print(type(13))
<class 'int'>
请问你的名字?张剑锋
请问你今年多大?18
a=8
b=8
a=a+b
a
16
a=8
b=8
a+=b
a
16
print("fg"*10)
fgfgfgfgfgfgfgfgfgfg
a="""离离原上草,
一岁一枯荣"""
print(a)
离离原上草,
一岁一枯荣
print(123456789)
123456789
x=5
y=10
print(x>y)
False
print(y>x)
True
a,b,c,d,e=1,2,3,4,5
print(a+b+c+d+e)
15
print("离离原上草,\n一岁一枯荣")
离离原上草,
一岁一枯荣
print("离离原上草,\t一岁一枯荣")
离离原上草, 一岁一枯荣
print(r"离离原上草,\t一岁一枯荣")
离离原上草,\t一岁一枯荣
a="在不在"
b="不在"
print(a,"\n",b)
在不在
不在
a="1,2,3,4"
print((type)a)
SyntaxError: invalid syntax. Perhaps you forgot a comma?
a="1,2,3,4"
print((Type)a)
SyntaxError: multiple statements found while compiling a single statement
a=1314.1314
b=int(a)
print(b)
SyntaxError: invalid character ')' (U+FF09)
a=1314.1314
b=int(a)
print(b)
SyntaxError: multiple statements found while compiling a single statement
a=13.14
print(int(a))
13
print(type(a))
<class 'float'>
print(type(13))
<class 'int'>
请问你的名字?张剑锋
请问你今年多大?18
a=8
b=8
a=a+b
a
16
a=8
b=8
a+=b
a
16