摘要: win7/win8/win10系统下Visual Studio 2013各个版本的密钥: Visual Studio Ultimate 2013 KEY:BWG7X-J98B3-W34RT-33B3R-JVYW9 Visual Studio Premium 2013 KEY:FBJVC-3CMTX- 阅读全文
posted @ 2019-07-11 21:17 anobscureretreat 阅读(6792) 评论(0) 推荐(1)
摘要: import numpy as np a = np.array([[1,2],[3,4]]) sumo = np.sum(a,axis=0) suml = np.sum(a,axis=O) print(sumo) print(suml) 阅读全文
posted @ 2019-07-11 01:06 anobscureretreat 阅读(1156) 评论(0) 推荐(0)
摘要: #查看topic频率rostopic hz /xxx_imu_driver/imu #查看topic信息rostopic info /xxx_imu_driver/imu #查看topic数据rostopic echo /xxx_imu_driver/imu 阅读全文
posted @ 2019-07-11 00:06 anobscureretreat 阅读(771) 评论(0) 推荐(0)
摘要: modf() 分别取整数部分和小数部分 math模块函数import mathn = 3.75print(math.modf(n))>>> (0.75, 3.0)n = 3.25print(math.modf(n))>>> (0.25, 3.0)n = 4.2print(math.modf(n))( 阅读全文
posted @ 2019-07-11 00:05 anobscureretreat 阅读(1829) 评论(0) 推荐(0)
摘要: #字典创建>>> dict2 = { 'abc': 123, 98.6: 37 }>>> dict2[98.6]37>>> dict2["abc"]123 键必须不可变,所以可以用数字,字符串或元组充当,用列表就不行#!/usr/bin/pythondict = {['Name']: 'Zara', 阅读全文
posted @ 2019-07-11 00:04 anobscureretreat 阅读(565) 评论(0) 推荐(0)
摘要: >>>def square(x) : # 计算平方数 ... return x ** 2 ... >>> map(square, [1,2,3,4,5]) # 计算列表各个元素的平方 [1, 4, 9, 16, 25] >>> map(lambda x: x ** 2, [1, 2, 3, 4, 5]) # 使用 lambda 匿名函数 [1, 4, 9... 阅读全文
posted @ 2019-07-11 00:03 anobscureretreat 阅读(466) 评论(0) 推荐(0)