mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
21 lines
446 B
Python
21 lines
446 B
Python
class scr_Text:
|
|
def cus_print(self, data, end='\n'):
|
|
str_buf = ""
|
|
|
|
if isinstance(data, str):
|
|
str_buf = str_buf + data
|
|
elif isinstance(data, int):
|
|
str_buf = str_buf + str(data)
|
|
else:
|
|
str_buf = "The type is not recognized"
|
|
str_buf = str_buf + end
|
|
|
|
|
|
screen = scr_Text()
|
|
screen.cus_print(12)
|
|
screen.cus_print(12)
|
|
screen.cus_print(12)
|
|
screen.cus_print(12)
|
|
|
|
print('PASS')
|