Пример #1
0
def main():
    d1 = CharDisplay('H')
    d2 = StringDisplay('Hello, World.')
    d3 = StringDisplay('你好,世界。')

    d1.display()
    d2.display()
    d3.display()
Пример #2
0
def main():
    d1 = CharDisplay('H')
    d2 = StringDisplay('Hello, World')
    d3 = StringDisplay('こんにちわ')

    d1.display()
    d2.display()
    d3.display()
Пример #3
0
from char_display import CharDisplay
from string_display import StringDisplay

if __name__ == '__main__':
    char_display = CharDisplay("H")
    string_display = StringDisplay("Hello, World")
    string_display_japanese = StringDisplay("こんにちは")

    char_display.display()
    string_display.display()
    string_display_japanese.display()
Пример #4
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
from char_display import CharDisplay
from string_display import StringDisplay

if __name__ == '__main__':
    d1 = CharDisplay('H')
    d2 = StringDisplay('Hello, world.')
    d3 = StringDisplay('こんにちは。')

    d1.display()
    d2.display()
    d3.display()
Пример #5
0
def main():
    char_disp = CharDisplay("c")
    string_disp = StringDisplay("string")
    char_disp.display()
    string_disp.display()
Пример #6
0
#!/usr/bin/env python
# coding: utf-8

from char_display import CharDisplay
from string_display import StringDisplay

d1 = CharDisplay("H")
d2 = StringDisplay("Hello, world.")
d3 = StringDisplay("こんにちは")

d1.display()
d2.display()
d3.display()
Пример #7
0
def main():
    char_disp = CharDisplay("c")
    string_disp = StringDisplay("string")
    char_disp.display()
    string_disp.display()