# #
## 1 ##
```python
class UserInfo(object):
name=''
```
## 2 ##
```python
class UserInfo(object):
def __init__(self,name):
self.name=name
```
## 3 ##
Java public private Python
`__private_attrs` `self.__private_attrs`
Python Python

```python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
class UserInfo(object):
def __init__(self, name, age, account):
self.name = name
self._age = age
self.__account = account
def get_account(self):
return self.__account
if __name__ == '__main__':
userInfo = UserInfo('', 23, 347073565);
#
print(dir(userInfo))
#
print(userInfo.__dict__)
print(userInfo.get_account())
#
print(userInfo._UserInfo__account)
```
