Pycham python 使用技巧

2022-09-11 19:21:10 字數 931 閱讀 7484

1.調整**編輯視窗的字型大小

2.解決「pep 8:line too long (143 > 120 characters)」問題

file>settings>editor>code style>general>hard wrap at 修改為200

3.pycham 修改格式化**快捷鍵

file>settings>keymap>main menu>code>reformat code 

雙擊,選擇「add keyboard shortcut」,如下圖所示,不用刪除裡面的內容,直接按下ctrl+alt+x就可以了,點選ok儲存

刪除舊的快捷鍵

4.新建python檔案自動新增字符集utf-8

file>settings>editor>file and code templates「# -*- coding: utf-8 -*-」,設定完成後,再建立python檔案,會自動帶上字符集

UIAlertController使用技巧

由於在ios8之後,蘋果將uialertview和uiactionsheet兩者進行了整合,用uialertcontroller來代替 如何建立uialertcontroller uialertcontroller alertcontroller uialertcontroller alertcon...

perl use vars pragma使用技巧

perl 中的vars是perl中的乙個pragma 預編譯指示符 專門用來預定義全域性變數,這些預定義後的全域性變數在qw 列表中,在整個引用perl檔案中皆可使用,即便使用use strict也不會報錯 複製 如下 use strict str hello world n 報錯資訊 global...

execute immediate的使用技巧

使用技巧 1.execute immediate將不會提交乙個dml事務執行,應該顯式提交 假如通過execute immediate處理dml命令,那麼在完成以前需要顯式提交或者作為execute immediate自己的一部分.假如通過execute immediate處理ddl命令,它提交所有...