列表换行join函数

作者: gu_lao_rou-p 分类: Python 发布时间: 2020-09-20 00:01
int = '\n'
float = ' '
str = []
a = input('任务名称:\n')
b = input('等级限制 最低等级:\n')
c = input('最高等级:\n')
d = input('任务简介:\n')
str.append(a)
str.append('%s~%s' % (b, c))
str.append('——————————————')
str.append(d)
print('————任务名称—————\n'+float.join(str[0]))
print('____推荐等级_____\n'+int.join(str[1:]))


Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 26

Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 27

Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 28
标签云