ITPub博客

首页 > IT职业 > IT职场 > python学习:变量

python学习:变量

IT职场 作者:ilovelily 时间:2021-09-09 09:26:54 0 删除 编辑

##变量

print("Hello World!")

name = "xiguapi"

name2 = name

print(name,name2)

name= "Jack"

print ("What is the value name2 now",name2)


运行结果:

Hello World!

xiguapi xiguapi

What is the value name2 now xiguapi

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1441/viewspace-2803120/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-15

  • 博文量
    116
  • 访问量
    702