python 调用Windows API

#python 调用Windows API(使用IDLE开发环境)
from ctypes import *
msvcrt = cdll.LoadLibrary('msvcrt')
for i in 'love':
    msvcrt.printf(i)
#python 调用Windows API(使用VS开发环境)
from ctypes import *

msvcrt = cdll.LoadLibrary('msvcrt')
msvcrt.printf('love\n')

猜你喜欢

转载自blog.csdn.net/zheng_ruiguo/article/details/87689304