page contents

怎样声明多个变量并赋值?

轩辕小不懂 发布于 2021-05-25 10:06
阅读 552
收藏 0
分类:Python开发

最佳答案 2021-05-25 10:34

862
Pack
Pack

一共有两种方式:

1>>> a,b,c=3,4,5 #This assigns 3, 4, and 5 to a, b, and c respectively

2>>> a=b=c=3 #This assigns 3 to a, b, and c

请先 登录 后评论