1. 利用正则表达式模块,获取输入的邮箱地址中的用户名。输入一串邮箱地址字符串,输出其中的用户名样例输入:user@163.com输出:user
直接split就行了,不需要正则
s=input() name=s.split('@')[0] print(name)