例:パスワードは大文字、小文字、数字を持っている必要があり、
パスワード= ____________ #__入力()、カスタム入力がかもしれすることができ
A = 'ABCD .....'
B = 'ABCD .......'
C = '1234 .......'
パラメータの割り当てにカウント1、カウント2、count_3 =偽、偽、偽#
Iパスワードのために:
I Aであれば:
カウント1 =真
I Bであれば:
カウント2 =真
I Cであれば:
count_3 =真
カウント1とカウント2の場合とcount_3:
印刷( 'OK')
他:
印刷(「パスワードは大文字、小文字、数字を持っている必要があります」)
-------------------------------------------------- -------------------------------------------------- ----------------
例:電卓
-------------------------------------------------- -------------------------------------------------- -----------
例:ランダム出力
これは、コードVSある#######
########これはJupyterです
-------------------------------------------------- -------------------------------------------------- ------------
ループのためのパスワード入力バンク(3)---------
-------------------------------------------------- -------------------------------------------------- ----------------
出力ランダム配列:
-------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -
シーケンス
-------------------------------------------------- -------------------------------------------------- -------------------------------------------------- ---
昨日の例:
a=int(input('Enter today’s day: '))
b=int(input('Enter the number of days elapsed since today: '))
week=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']
wl=(a+b)%7
print("Today is %s and the future day is %s"%(week[a],week[wl]))
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
a,b=map(int,input('输入年份及月份 ').split(','))
if (a%4==0 and a%100!=0) or (a%400==0):
e=int( '29')
else:
e=int( '28')
if b==1 or b==3 or b==5 or b==7 or b==8 or b==10 or b==12 :
t=int( '31')
elif b==4 or b==6or b==9 or b==11:
t=int( '30')
else:
t==e
print('%d 年 %d 月份有 %d 天' %(a,b,t))
-------------------------------------------------------------------------------------------------------------------------------------
########昨天写死了,今天要补死了,啊啊啊啊啊