小编wil*_*wil的帖子

用于简单GUI的编程语言或库?

什么是用GUI编程的编程语言.我知道有一种方法可以在Windows中使用C进行GUI,但我想用Linux编程并使我的程序与其他操作系统兼容.有什么建议?

c linux user-interface

1
推荐指数
1
解决办法
933
查看次数

Python If语句

在我的python程序中,有时在我的if语句中只有顶部的一个有效

这是我的程序 http://ubuntuone.com/0u2NxROueIm9oLW9uQVXra

当你运行程序,如果你去东北西南,然后它不起作用问题是在函数room4():

def room4():
    """Forest go south to small town room 1 and east to forest path room8"""
    room = 4
    print "Forest you can go south to small town, east to forest path, or continue to explore the forest"
    cmd = raw_input('> ') 
    cmd = cmd.lower()
    if cmd == "e" or cmd == "east" or "go east":
        print room8()
    if cmd == "s" or cmd == "south" or "go south":
        print room1()
    if cmd == "forest" or …
Run Code Online (Sandbox Code Playgroud)

python

-2
推荐指数
1
解决办法
199
查看次数

标签 统计

c ×1

linux ×1

python ×1

user-interface ×1