I=10
J=20
If I>J Then Print I Else Print J
x=6
If x <= 5 Then
y = 2 * x + 1
Else
y = x / 2
End If
if int (input ( ) ) %5= =0:
print("yes")
if int (input ( ) ) %5!=0:
print("no")
如果输入7,则输出( )。
If x<=12:
y=3+x
else:
y=4+x
a=3
b=2
a=a*b
print(a)
a=20
b=2
c=a**b+300
print(c)
千位:
百位:
十位:
个位:
|
>>> 3+0.5
|
>>>9**0.5
|
>>>123%10
|
|
>>> 10/2
|
>>>55//3
|
>>>(65-23)*2/3
|
|
>>>n=987 >>> format(n,'.1f')
|
>>> n=987 >>> float(n)
|
>>> n=1254.9 >>> int(n)
|
|
>>>print( format(n,'.1f'))
|
>>> n=“987” >>> float(n)
|
>>> n=“1254.9” >>> int(n)
|
