摘要: shuffle()方法将序列的所有元素随机排序。下面是语法:1 import random2 3 random.shuffle (lst )lst可以是序列或者元组; 1 >>> import random; 2 >>> indexList=[1,2,4,5,8,6]; 3 >>> indexLis... 阅读全文
posted @ 2014-12-16 23:02 志者之梦 阅读(8338) 评论(0) 推荐(1) 编辑
摘要: 1 >>> from tkinter import *;2 >>> root=Tk()3 >>> myLabel=Label(root,text="Hello world!");4 >>> myLabel.grid()5 >>> root.mainloop()先使用from tkinter impo... 阅读全文
posted @ 2014-12-16 15:34 志者之梦 阅读(857) 评论(0) 推荐(0) 编辑