Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/user/yhz.py
2020-06-13 20:43:43 +08:00

25 lines
No EOL
930 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import re
def yhz(str1):
q = re.sub('\[','',str1)
q = re.sub('\]','',q)
q = re.sub(', ','',q)
q = re.sub("'\*'",'',q)
q = re.sub("'user'",'用户',q)
q = re.sub("'autoconfirmed'",'自动确认用户',q)
q = re.sub("'grasp'",'Gamepedia快速反滥用巡查员',q)
q = re.sub("'global_bureaucrat'",'全域行政员',q)
q = re.sub("'global_sysop'",'全域管理员',q)
q = re.sub("'hydra_staff'",'Gamepedia职员',q)
q = re.sub("'wiki_manager'",'Wiki经理',q)
q = re.sub("'bureaucrat'",'行政员',q)
q = re.sub("'sysop'",'管理员',q)
q = re.sub("'directors'",'向导',q)
q = re.sub("'autopatrol'",'巡查豁免者',q)
q = re.sub("'wiki_guardian'",'Wiki守卫',q)
q = re.sub("'bot'",'机器人',q)
q = re.sub("'hydra_admin'",'Hydra管理员',q)
q = re.sub("'Patrol'",'巡查员',q)
q = re.sub("''",'',q)
q = re.sub("''",'',q)
return(q)