for a in range(100,1000):
c=str(a)
b=0
for i in c :
b+=(int(i))**3
if b==a:
print(a)
#按照這個代碼進行水仙花數的統計,結果會多出來一個370,檢查不出來bug
[Python rudimentary] the hasattr function determines whether an object contains an attribute
【python primary 】hasattr Funct
[Python automated test 33] appium startup steps, initialization operations and appium principles
List of articles One 、 Prefac
[quantitative investment system Python] mplfinance drawing K-line diagram 2
The previous section describes