python-2.7

    -4熱度

    1回答

    當我使用https://ideone.com 它給了我運行時錯誤我怎麼能解決這個問題? 代碼: a = int(raw_input()) b = int(raw_input()) c = int(raw_input()) z = a + b + c print z

    0熱度

    1回答

    描述如何打印網格如下所示沒有任何內容打印6 * 6格: 我嘗試了以下輸入: grid = [["|" for x in range(7)] for y in range(6)] for row in grid: print(" ".join(row)) 但它生成以下輸出: | | | | | | | | | | | | | | | | | | | | | | | | | |

    0熱度

    2回答

    這可能是重複的,但我無法在任何地方找到我的答案。 我有一個文本文件,我想刪除特定行中的特定字符。 這裏有一個例子: #textfile.txt Hey! 1234/ How are you//? 9/23r 我怎樣才能把第二行的斜線? 輸出應該是: #textfile.txt Hey! 1234 How are you//? 9/23r 我沒有代碼,並就如何做到這一

    0熱度

    1回答

    對於一個文字遊戲(類似於圖像提供的),其中在網格內各種字母輸入在不同的瓦片上,我必須創建一個6 * 6網格,然後執行操作它喜歡: a)place the tile on a specific location in the grid and b)return the location of any tile on the grid c)determining the top scoring w

    0熱度

    2回答

    我想創建一個JSON對象並將其附加到列表中,但沒有成功。 我得到這個錯誤按摩: Traceback (most recent call last): File "/projects/circos/test.py", line 32, in <module> read_relationship('data/chr03_small_n10.blast') File "/p

    -5熱度

    2回答

    我有三個名單球隊= [T1,T2,T3,T4],還有勝數Nwins [10,12,10,5]和他們得分的目標數 GScored [33,34,22, 28。我想根據他們的勝利數量找到賽季冠軍,但是如果兩支球隊在賽季中獲得相同的勝利,那麼他們的進球數就會增加。類似地,獲勝最少的人將被降級,如果有兩人,那麼進球最少的人將被淘汰。您的幫助將不勝感激

    0熱度

    1回答

    我有如下字符串: 「記錄一個」,「領域」:「隨機ABC」,「申請B」:」 random abc「,」filed c「:」123「 」record two「,」field a「:」random abc「,」filed b「:」random ab c「,」filed c「:」abc 「 如何使用正則表達式從不包含任何數字的歸檔c中提取值?我試過這樣的: r"\"filed c\"\:\"([^\"\d

    0熱度

    1回答

    我可以運行我的應用程序在本地使用 dev_appserver.py app.yaml 我的應用程序的作品。但是,當我嘗試部署到應用程序引擎時,出現以下警告:警告:[runtime: python-compat]已棄用。請改用[runtime: python]。有關更多信息,請參閱https://cloud.google.com/appengine/docs/flexible/python/migr

    -2熱度

    1回答

    我想連接我的android應用程序與web服務。是否有任何可能的方式來創建python中的web服務。我無法通過網絡找到任何好的示例。

    -1熱度

    1回答

    我試圖編寫程序來在ffile文件夾中搜索md5哈希文件以匹配特定的哈希。請幫忙! import hashlib from hashlib import md5 hash_file = raw_input() afile = open('ffile','rb') buf = afile.read()