Convert dict to string in Python3

#!/usr/bin/env python3 # define a dict object/d d = dict() d['0'] = 'a' d['1'] = 'b' print("type/d:", type(d), " value/d:", d) ...

2019-03-28 16:24:38

阅读数 10

评论数 0

exception in Python3

Some excercise about exception issue in Python3.5 Sample Zero: #!/usr/bin/env python3 try:   # hello exception !     x = input("Enter the...

2018-12-19 15:17:57

阅读数 26

评论数 0

Install VScode on ubuntu

My OS is ubuntu16.04 and my laptop is 32bit, then I install Visual Studio Code1.29.1. Step 1: go to official web to download source package: https:/...

2018-11-27 20:11:51

阅读数 113

评论数 0

Floyd algorithm in Python3.5

#!/usr/bin/env python3 # Refer to: http://wiki.jikexueyuan.com/project/easy-learn-algorithm/floyd.html # Comments: The Floyd algorithm can tell how m...

2018-08-30 15:36:28

阅读数 61

评论数 0

Dijkstra algorithm in Python3.5

#!/usr/bin/env python3 # Refer to: http://wiki.jikexueyuan.com/project/easy-learn-algorithm/dijkstra.html # Comments: The Dijkstra algorithm can tell...

2018-08-30 14:40:59

阅读数 117

评论数 0

mqtt client communication

I write 2 mqtt clients with Python2.7: mqtt_talk.py and mqtt_listen.py, they get publisher and subscriber inside. Take mqtt_talk.py as example, once ...

2018-08-28 18:04:32

阅读数 55

评论数 0

mqtt publish and subscribe with Python

Assume you have read some introduction papers about MQTT(like here: https://pypi.org/project/paho-mqtt/) I write 2 Python scripts with python2.7: mq...

2018-08-28 17:39:20

阅读数 102

评论数 0

stm32f7 CAN: loop-back communication on CAN1 and CAN2

    Struggling three days on CAN communication, tons of CAN protocol to read, but I prefer creating new project on STM32 than reading papers alone, w...

2018-05-18 15:03:20

阅读数 261

评论数 0

write in and read from TXT file by python

Simple example to open a new TXT file and write down some helpful data.import timefin = open("data.txt", "w")fin....

2018-05-11 15:35:45

阅读数 136

评论数 0

KNN algorithm in Python

This is a homework of Computer Vision class(2017) of Feifei Li, CS231n, Stanford University. I prefer to focus on single task of every assignment in ...

2018-04-26 21:55:06

阅读数 58

评论数 0

stm32f7 TIM: input capture and PWM output

Busying with TIM function of stm32f7 these two days, I spend almost one week to get familiar with TIM and create a simple example about TIM configura...

2018-04-23 16:06:39

阅读数 186

评论数 0

Configure Eclipse for stm32

Comes an instruction to help you create simple STM32 project in Eclipse. Requirements: Ubuntu 16.04, STM32F767IG. Source available here:

2017-12-09 20:30:11

阅读数 109

评论数 0

LSD algoritm

Once considering detect a line from image, Hough Line Detection algorithm must be the first choice, it's classic and easily to understand, but in thi...

2017-10-22 09:02:21

阅读数 156

评论数 0

Publish ROS message from terminal

Here are some simple steps to make you know how to publish a ROS message in terminal by command line: Step 1: Set up roscore. Step 2: Define a ROS me...

2017-10-09 16:58:10

阅读数 168

评论数 0

ROS 记录与回放

今天学习了ROS系统中的数据记录与回放操作,下面以具体实例说明这个功能的实现过程,以下的文件路径为linux系统中的 ~/Documents/ROS/ 1. 新建工作空间,在 ~/Documents/ROS/ 下打开新的终端,依次执行以下命令     mkdir test     cd te...

2017-06-13 18:02:16

阅读数 292

评论数 0

ubuntu16.04+opencv3.4.0

进来需要在linux下用到opencv,虽然linux中自带的python自带了opencv类似的图像处理函数,但是如果在linux中写C++ 就不好玩了,所以今天琢磨了好久才弄明白linux下怎么使用opencv。 参考链接: http://www.linuxidc.com/Linux/20...

2017-03-25 22:50:58

阅读数 1487

评论数 0

ubuntu16.04+git

这里主要记录一下我在ubuntu 16.04上面安装git,并将git 与github 配置的步骤。        我对git / github的工作机制还不是很了解,只懂得git好像是一种本地代码管理系统,github是一种远程代码托管系统,我们可以把自己电脑上写好的代码通过git 上传到git...

2017-03-18 18:24:18

阅读数 1347

评论数 0

第一个python代码

因为之前没怎么用过ubuntu,也没怎么写过python,所以这方面的经验需要不断积累,这里主要介绍怎么写一个hello world 代码。 1.首先打开ubuntu中的终端,会看到一行字后面跟着“~$”的标识,在这个标识后面就可以做各种操作,比如我想知道现在自己所在的文件地址,可以用命令“pw...

2017-03-07 13:37:25

阅读数 226

评论数 0

python第一天

近来着手写python,它常被归为脚本语言,关于什么叫做脚本语言,我也不太明白,只是知道python简洁快速,据说很强大,并且容易上手,对python我也刚接触不几天,希望自己一边学习一边记录,能够慢慢增长在python编码中的知识。 对编程语言,思路上都类似,为了更好学习python 的编码规...

2017-02-20 16:33:01

阅读数 306

评论数 0

心情11/15

这些天一直在忙着,本来计划的是抓紧写论文,但是自从上周末开始看灵魂摆渡就彻底痴迷了,自己胆子小却偏偏喜欢看,终于把3季看完了,真好看呀,故事很细腻,有内涵,比我平时看的电影、电视剧都好,从故事中学到东西。 今天呢,有点特别,是学校开放毕业生签订就业协议的第一天,从九月就开始找工作,忙了近乎两个月...

2016-11-15 21:48:57

阅读数 233

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭