任务,自己制定今天任务,并完成总结。
自己制定:1、在http://www.runoob.com/python3/python3-tutorial.html(菜鸟教程)继续学习python3,巩固基础知识,并加以演练。
今日练习
#input("\n\n按下 enter建后退出。")
'''
#input("\n\n按下 enter建后退出。")
'''
import sys;
x = 'Liar';
sys.stdout.write(x+ '\n')
-------------------------------------
import sys;
x = 'Liar';
sys.stdout.write(x + '\n')
-------------------------------------
if expression :
suite #??
elif expression :
suite
else :
suite
---------------------------------------
x = "a"
y = "b"
#换行输出
print(x)
print(y)
print('-----------------')
print(x, end=" ")
print(y, end=" ")
print()
----------------------------------------
counter = 100 #整型变量
miles =1000.0 #浮点变量
name ="Liar" #字符串
print(counter)
print(miles)
print(name)
-------------------------------------------
a = b = c =1 #??
a,b,c = 1,2,"Liar" #??
-------------------------------------------------------------------
a,b,c,d,e = 20, 5.5, True, "我爱你", 6+1o #??
print(type(a),type(b),type(c),type(d),type(e))
---------------------------------------------
a = 101
isinstance(a,int) #??
'''
网友评论