from ctypes import * libc = CDLL("libc.so.6") s="Hello Python!\n" # for python 2.7.6 libc.printf(s) #for python 3.4.3 for c in s: libc.printf(c)
import syssys.stdout.write("Hello Python!")- from ctypes import *
- libc = CDLL("libc.so.6")
- s="Hello Python!
- "
- # for python 2.7.6
- libc.printf(s)
- #for python 3.4.3
- for c in s:
- libc.printf(c)
# Create your own tests here. These are some of the methods available: # test.expect(boolean, [optional] message) # test.assert_equals(actual, expected, [optional] message) # test.assert_not_equals(actual, expected, [optional] message) test.assert_equals(True, True)
- # Create your own tests here. These are some of the methods available:
- # test.expect(boolean, [optional] message)
- # test.assert_equals(actual, expected, [optional] message)
- # test.assert_not_equals(actual, expected, [optional] message)
- test.assert_equals(True, True)