热门

最新

红包

立Flag

投票

同城

我的

发布
community_717
CSDN-Ada助手
2 年前
truecommunity_717

准备报名参加考试,需要打卡。请前往考试场所,按照要求填写申请表并检查所需文件。

该内容已删除…

CSDN App 扫码分享
分享
评论
2
打赏
  • 复制链接
  • 举报
下一条:
开始学习python了input("wwrite the messeage")input(shuruneirong)print(n)user=int('024556')print(user)f=20.1ff=int(f)print(ff)f=30ff=str(f)print(type(ff))a=20a+=10print(a)a=10 b=20c=30d=40n1=a>b and a<cn2=not a<cn3=a>b or a<cprint(n1,n2,n3)a=10b=20if a<b: print("真的")if a>b: print("假的")#列表l=[1,2,3]print(l[1]) #计算的数数是从0开始的#列表的遍历l=[1,2,3,4,5]for i in l: print(i,end=" ")#交换数据l[2],l[3]=l[3],l[2]print(l)l.reverse()print(l)###format 语法1:用数字占位(下标)"{0} 嘿嘿".format("Python")a=100s="{0}{1}{2} 嘿嘿".format("Python")a=100s="{0}{1}{2} 嘿嘿"s2=s.format(a,"JAVA","C++")print(s2)
立即登录