moonfay
发表于 2017-2-3 04:25:05
拼图小游戏 lihai
panda小正太
发表于 2017-2-3 19:27:38
学习学习!
a347807131
发表于 2017-2-4 00:23:01
顶
Qking
发表于 2017-2-9 13:21:09
支持
solomonxian
发表于 2017-2-17 17:07:41
学习学习
西门翅膀
发表于 2017-2-19 11:13:24
前来学习啊啊啊
haojie99
发表于 2017-2-19 13:00:31
不错,学习了,谢谢~!~!!~
五更
发表于 2017-2-20 11:57:15
学习 学习
jasonzheng
发表于 2017-2-20 12:05:49
好啊
dazuiniao
发表于 2017-2-20 15:37:51
{:5_103:}{:5_104:}{:5_94:}
什么鬼…
发表于 2017-2-21 11:43:57
Tks
reainingma
发表于 2017-2-21 12:20:46
我来学习了
youfenghe
发表于 2017-3-29 16:06:31
UI噢UI欧i
xpb
发表于 2017-4-18 15:47:47
看看能否改进
WylLy
发表于 2017-4-18 22:21:31
看看怎么写的
RUI.GG
发表于 2017-5-10 22:56:47
一观以学习
qaz123765
发表于 2017-6-29 20:28:50
我用的是wasd按键进行移动,按键代码长
import random
def keyw():
while res!=:
inp=input("please move with key('w','a','s','d'):")
if inp=='w':
if res=='' or res=='' or res=='':
print("can't move")
else:
for i in range(9):
if res=='':
res,res=res,res
view()
elif inp=='s':
if res=='' or res=='' or res=='':
print("can't move")
else:
for i in range(9):
if res=='':
res,res=res,res
view()
elif inp=='d':
if res=='' or res=='' or res=='':
print("can't move")
else:
for i in range(9):
if res=='':
res,res=res,res
view()
elif inp=='a':
if res=='' or res=='' or res=='':
print("can't move")
else:
for i in range(9):
if res=='':
res,res=res,res
view()
else:
print("Input error...")
else:
print("You are win!Thank you!")
beggin()
def beggin():
global res
print("Welcom to play 9 blocks!")
che=
random.shuffle(che)
res=list(map(lambda x:,che))
view()
def view():
for i in range(3):
for j in range(3):
print(res,end='')
print('\n')
keyw()
if __name__=='__main__':
beggin()
Ywing
发表于 2017-8-25 10:55:18
6666
caoyue980928
发表于 2017-8-25 14:32:49
看看吧,挺有意思的
jiege0101
发表于 2017-9-21 15:30:21
受教了
页:
1
[2]
3
4
5
6
7
8
9
10
11