• 2022-11-11新的学习历程-python5 输入输出基础
    1uname=input("pleaseinputusername:")2print("welcome",uname)#print各项间默认以空格作为分隔符3print("welcome"+uname)#注意引号内最后的空格学习资源来
  • 2022-11-11新的学习历程-python4 input
    1num=input("请输入数字:")#input用于录入键盘输入2print(num)3print(type(num))#input获取到数据类型是字符类型45print(num+10)#报错,不能把字符和数字作
  • 2022-11-10新的学习历程-python2 print
    1print('helloworld!')2print('hello','world!')#逗号自动添加默认的分隔符:空格3print('hello'+'world!')#加号表示字符拼接4print('hello','world',sep='***')
  • 2022-11-09新的学习历程-python1 Hello World
    1print('helloworld!')2if2>0:3print('ok')4print('yes')56x=3;y=47print(x+y)学习资源来自:张志刚老师python百例 《例解Python:Pyth