![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
玄道
普通的软件工程师,努力在上海奋斗着。
展开
-
Python初入门1
刚接触python几天,大概说一下这两天的一个学习 因为之前一直做C的编程,忽然切换的python,还是由一些不同点的。 1. python对于TAB的使用很严格,不同level的语句,绝对不可以使用相同的缩进,例如 if a == b: print 'a'条件语句为0缩进,而执行语句必须使用tab进行1-tab 缩进 2. if/else/for之类的语句,条件判读后一定需要原创 2013-03-24 10:27:08 · 495 阅读 · 0 评论 -
Pyserial使用
ser.read(dataLen) Environment : WIN-7 64Bit Python Ver : V3.3.2 Pyserial Ver : V2.7 1. import the lib import serial 2. List the available ports import serial for i in range(50): try原创 2013-10-16 11:42:25 · 932 阅读 · 0 评论 -
How C#/Python Call DLL
1. C# Call DLL First, we may have a simple C function myFunction.c #include "myFunction.h" int mySum(int a, int b){ return a+b; } myFunction.h #原创 2014-11-19 16:17:54 · 761 阅读 · 0 评论 -
Python with MySql in Ubuntu
1. Install MySQLdb in ubuntu.sudo apt-get install python-MySQLdb 2. create a new python file vim mysql_learn.py 3. Edit the file #!/usr/bin/env python # coding=utf-8 import MySQLdb # mysql us原创 2015-08-17 22:00:24 · 425 阅读 · 0 评论