用户:wrmdcxy查看:3 回复:3 评论:3 创建时间:2023-01-18T20:48:46
想问一下是这样吗
class test(object):
def __init__(self,string,stringh):
self.string=string
self.stringh=stringh
self.te=3
self.sort()
self.zl()
self.wuliao()
self.arwu()
def sort(self):
for x in range(self.te):
self.string+=self.stringh
def zl(self):
self.string=self.string[0:11]
def wuliao(self,aa=10):
for x in range(aa):
self.string+="1111111121312dd"
def arwu(self):
self.string=self.string[0:11]
def __str__(self):
return self.string
ttt=test("Hello","Python")
ttt.wuliao()
ttt.arwu()
print(ttt)
logic罗辑我认为应该这样
console.log('HelloPython')
或是
#include <stdio.h> // 执行 printf() 函数需要该库
int main()
{
printf("HelloPython"); //显示引号中的内容
return 0;
}
(doge)
点赞1
评论
伴雪纷飞from ctypes import *
from platform import *
cdll_names={
'Darwin':'libc.dylib',
'Linux':'libc.so.6',
'Windows':'msvcrt.dll'
}
clib=cdll.LoadLibrary(cdll_names[system()])
clib.printf(b'Hello world!\n')
awa 应该是这样
点赞1
评论