markdown怎么写代码块
时间: 2023-10-13 11:04:33 浏览: 186
要在Markdown中写代码块,你可以使用缩进4个空格或者1个制表符的方式。例如,下面的输入:
def hello_world():
print("Hello, world!")
这样就创建了一个代码块。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [codedown:从Markdown文件中提取代码块](https://download.csdn.net/download/weixin_42139357/18433150)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [行内代码](https://blog.csdn.net/community_999/article/details/125422249)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文