Python - checking if a user has administrator privileges

前端 未结 4 800
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 04:41

I\'m writing a little program as a self-learning project in Python 3.x. My idea is for the program to allow two fields of text entry to the user, and then plug the user\'s i

4条回答
  •  感动是毒
    2021-01-01 05:04

    Most straightforward way is try to change the key at the beginning, maybe to a stub value - if that fails, catch the error and tell the user.

提交回复
热议问题