从指定数字范围中产生随机数
qpython吧
全部回复
仅看楼主
level 4
bdlengyff 楼主
将@@@@全部替换为4个空格就行了...
#-*-coding:utf8;-*-
#qpy:2
#qpy:console
#print "This is console module"
import androidhelper
droid = androidhelper.Android()
import random
import time
def suijishu():
@@@@list = ["01","02","03","04","05","06","07","08","09","10"]
@@@@get_array = random.sample(list,3)
@@@@get_array.sort()
@@@@print "3个随机数:"+"%s"%get_array
@@@@print "1个随机数:"+"%s"%random.randint(1,4)
v = 0
while v < 10:
@@@@n = raw_input("当前时间:")
@@@@fmt='%Y-%m-%d %H:%M:%S'
@@@@Date=time.strftime(fmt,time.localtime(time.time()))
@@@@print Date
@@@@suijishu()
@@@@print'**************************'
2017年04月22日 04点04分 1
level 1
这代码写的真丑
2017年07月07日 20点07分 2
1