会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
乘风破浪会有时,直挂云帆济沧海
博客园
首页
新随笔
联系
管理
订阅
随笔- 116 文章- 0 评论- 10 阅读-
10万
03 2021 档案
python3去除行号
摘要:问题:在复制一些代码时会同时复制每行的行号,删除比较麻烦,所以利用python3本身的代码进行一键删除。 # 导入re 模块来使用正则表达式 import re """去掉行号""" print('remove application start') # 定义去除行号函数 def remove_li
阅读全文
posted @
2021-03-14 22:05
JRS077
阅读(304)
评论(0)
推荐(0)
编辑
公告
昵称:
JRS077
园龄:
4年7个月
粉丝:
7
关注:
4
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
更多链接
随笔分类
AD(1)
C语言(5)
GUI(1)
Hardware(1)
Head First Python notes(15)
PC错误信息(1)
pycharm(4)
Pycharm打不开(1)
Python3(8)
python编程:从入门到实践(27)
stm32(37)
集合(1)
开关电源(2)
列表(1)
通信原理(1)
文件操作(1)
装饰器(1)
字典(1)
字符串操作(1)
随笔档案
2023年11月(2)
2023年9月(1)
2023年2月(5)
2023年1月(4)
2022年12月(1)
2022年11月(2)
2022年10月(1)
2022年9月(2)
2022年8月(2)
2022年7月(2)
2022年6月(3)
2022年5月(7)
2022年4月(1)
2022年3月(1)
2022年2月(6)
2022年1月(7)
2021年11月(1)
2021年10月(4)
2021年9月(2)
2021年8月(1)
2021年7月(7)
2021年6月(12)
2021年5月(11)
2021年3月(1)
2021年2月(3)
2020年12月(2)
2020年11月(1)
2020年10月(2)
2020年9月(13)
2020年8月(4)
2020年7月(5)
更多
阅读排行榜
1. TypeError: module() takes at most 2 arguments (3 given)(17579)
2. TypeError: Descriptors cannot not be created directly.(14322)
3. D:\Software\Keil5\ARM\PACK\Keil\STM32F1xx_DFP\2.1.0\Device\Include\stm32f10x.h(483): error: #5: cannot open source input file "core_cm3.h": No such file or directory(9220)
4. 《python编程:从入门到实践》课后习题及答案(5370)
5. Pycharm无法打开,双击没反应(4049)
评论排行榜
1. 使用固件库点亮LED灯(2)
2. STM32中操作寄存器GPIOB_CRL &= ~( 0x0F<< (4*0))与GPIOB_CRL &=~(0x0F)之间有什么区别吗?(2)
3. 使用寄存器点亮LED(2)
4. 笨方法学python中执行argv提示ValueError: not enough values to unpack (expected 4, got 1)(2)
5. #define digitalHi(p ,i) {p->PSRR=i} //输出为高电平(1)
推荐排行榜
1. TypeError: module() takes at most 2 arguments (3 given)(4)
2. stm32 PWM驱动步进电机(1)
3. TIMx_ETR外部时钟源模式2配置方法(1)
最新评论
1. Re:#define digitalHi(p ,i) {p->PSRR=i} //输出为高电平
在HAL库的帮助文档中有定义,这是相当于又进行了一次封装,例如: define GPIO_PIN_10 ((uint16_t)0x0400) /* Pin 10 selected...
--阮晚
2. Re:使用固件库点亮LED灯
--JRS077
3. Re:使用固件库点亮LED灯
简化版固件库点亮LED灯: ` include "stm32f10x.h" int main(void) { //方法2: 固件库点亮LED灯 RCC_APB2PeriphClockCmd(RCC_A...
--JRS077
4. Re:使用寄存器点亮LED
Q1 为什么需要使能APB2ENR, 而不是使能APB1ENR? Ack:因为GPIOA,B,C,D,E,F,G都是挂载在APB2总线上的,所以需要使能APB2ENR外设时钟。 Q2: 为什么使能CR...
--JRS077
5. Re:使用寄存器点亮LED
include "stm32f10x.h" int main(void) { //寄存器点亮LED灯 //2进制0000 0000 0000 0000 0000 0000 0000 1000 =>16...
--JRS077
点击右上角即可分享