爲什麼PyCharm將嵌套代碼塊末尾的換行符疊加到前一個塊中? 例(嘗試摺疊的第一個「如果」塊): def print_me(a):
# newline comment
if a == 'me':
dummy_padding = ''
if not dummy_padding:
favorite_place = 'zoo'
prin
我正在開發pycharm中的python程序。在這行我的代碼: rut = Tk()
rut.tk.call('wm', 'iconphoto', rut._w, PhotoImage(file=icon_file))
而且我得到 'rut._w' 警告說: access to a protected member _w of a class 當我按Ctrl + Enter它給了我一個選擇:
我知道這個問題已經發布了幾次,但我已經嘗試了所有這些線程建議的(使用終端,確保點更新,確保它在正確的文件夾等),我仍然無法安裝新的軟件包。有沒有人有任何新的建議,我現在在這個問題上該怎麼辦。非常感謝你。 The error that I am encountering in both the terminal and in Pycharm