码迷,mamicode.com
首页 > 其他好文 > 详细

第5课

时间:2020-01-29 14:36:38      阅读:57      评论:0      收藏:0      [点我收藏+]

标签:span   bre   else   col   imp   inpu   bug   dex   print   

a= ["23", 34, 56,"print", None]
b = int(a[0]) + a[2]
print(b)



import random
a= ["print","input", "while", "if", "else", "break","continue"]
while True:
    index = random. randint(0,6)
    print(a[index])




a = ["print", "input","while", "if", "else", "break","continue"]
tmp = a[1]
a[1] = a[5]
a[5] = tmp
print(a)




bug

 

第5课

标签:span   bre   else   col   imp   inpu   bug   dex   print   

原文地址:https://www.cnblogs.com/w11111111111/p/12240141.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!