小白日记一
列表索引:位置[-1]为倒数第一个
列表名.index(值):返回元素第一次出现的位置
import random
import time
time.sleep(1)
import math
math.ceil() 向上取整
格式化字符串
print(“xxxxx{}xxx{}”.format(a,b))
小白日记一
列表索引:位置[-1]为倒数第一个
列表名.index(值):返回元素第一次出现的位置
import random
import time
time.sleep(1)
import math
math.ceil() 向上取整
格式化字符串
print(“xxxxx{}xxx{}”.format(a,b))