![](/img/trans.png)
[英]How do I do if word_pick not == random_choice?
我說的是第一個 if 語句,我怎么不 == random_choice??? 所以如果 word_pick 不在 random_choice 中,我想做,然后將分數減去 5 請幫助 ...
[英]How do I do if word_pick not == random_choice?
我說的是第一個 if 語句,我怎么不 == random_choice??? 所以如果 word_pick 不在 random_choice 中,我想做,然后將分數減去 5 請幫助 ...
[英]How do I correctly use isinstance() in my random number guessing game or is another function needed?
我希望這個猜數游戲能夠捕捉到用戶輸入的所有可能的異常或錯誤。 我在猜測數字時成功阻止了使用字符串,但我希望控制台在輸入浮點數時顯示一條自定義消息,說“只允許 1-20 之間的整數”。 我意識到我的異常可以捕獲這種錯誤,但出於學習目的,我想專門處理用戶是否輸入浮點數而不是整數。 從我可以在網上找到的 ...
[英]How to setup guessjs in an angular cli project using the ui-router?
我正在嘗試設置guessjs,以通過 static routes.json文件預取我的一些模塊。 The project uses angular cli with custom webpack config as described here https://guess-js.github.i ...
[英]Integrating Google Tag Manager with gatsby-plugin-guess-js
我目前正在研究一個Gatsby項目,該項目已經在使用Google跟蹤代碼管理器來處理Google Analytics(分析)。 我想將gatsby-plugin-guess-js與此網站合並以提高性能,但是如果不使用gatsby-plugin-google-analytics,我似乎無法實現這 ...