#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')
#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')