Python自学之String

来源:互联网 发布:iphone7plus在线软件 编辑:程序博客网 时间:2024/05/01 19:00
#单引号和双引号的区别a='hello'b=' world'c="hello"print(a+b)print(c)print(a[0])print(b[1])print(c[0])m=str(123)n=str(456)print(m+n)

实验结果:

hello worldhellohwh123456
0 0
原创粉丝点击