for i in range(9,0,-1):
for j in range(1,i+1):
print(f"{j}*{i}={str(i*j).ljust(2)}",end=" ")
print()
1*9=9 2*9=18 3*9=27 4*9=36 5*9=45 6*9=54 7*9=63 8*9=72 9*9=81
1*8=8 2*8=16 3*8=24 4*8=32 5*8=40 6*8=48 7*8=56 8*8=64
1*7=7 2*7=14 3*7=21 4*7=28 5*7=35 6*7=42 7*7=49
1*6=6 2*6=12 3*6=18 4*6=24 5*6=30 6*6=36
1*5=5 2*5=10 3*5=15 4*5=20 5*5=25
1*4=4 2*4=8 3*4=12 4*4=16
1*3=3 2*3=6 3*3=9
1*2=2 2*2=4
1*1=1
for i in range(1,10,1):
for j in range(1,i):
print(f"{i}*{j}={str(i*j).ljust(2)}",end=" ")
print()
2*1=2
3*1=3 3*2=6
4*1=4 4*2=8 4*3=12
5*1=5 5*2=10 5*3=15 5*4=20
6*1=6 6*2=12 6*3=18 6*4=24 6*5=30
7*1=7 7*2=14 7*3=21 7*4=28 7*5=35 7*6=42
8*1=8 8*2=16 8*3=24 8*4=32 8*5=40 8*6=48 8*7=56
9*1=9 9*2=18 9*3=27 9*4=36 9*5=45 9*6=54 9*7=63 9*8=72
ch_numbers=[' ','一','二','三','四','五','六','七','八','九','零']#douhao yinhao chen
numbers=[' ','1','2','3','4','5','6','7','8','9']
for i in range(9,0,-1):
for j in range(1,i+1):
result=str(i*j).ljust(2)
left=ch_numbers[numbers.index(result[0])]
right=ch_numbers[numbers.index(result[0])]
print(f"{ch_numbers[j]}*{ch_numbers[i]}={left}{right}",end=" ")
print()
一*九=九九 二*九=一一 三*九=二二 四*九=三三 五*九=四四 六*九=五五 七*九=六六 八*九=七七 九*九=八八
一*八=八八 二*八=一一 三*八=二二 四*八=三三 五*八=四四 六*八=四四 七*八=五五 八*八=六六
一*七=七七 二*七=一一 三*七=二二 四*七=二二 五*七=三三 六*七=四四 七*七=四四
一*六=六六 二*六=一一 三*六=一一 四*六=二二 五*六=三三 六*六=三三
一*五=五五 二*五=一一 三*五=一一 四*五=二二 五*五=二二
一*四=四四 二*四=八八 三*四=一一 四*四=一一
一*三=三三 二*三=六六 三*三=九九
一*二=二二 二*二=四四
一*一=一一
s='25'
s[0]
'2'
#案例 token 生成器
#用途url passport filename
#random string 字符串与数字综合练习 列表
import random
random.choice("abdfdsafadsfdsafdsa")
'f'
random.choice?
'''
Signature: random.choice(seq)
Docstring: Choose a random element from a non-empty sequence.
File: ~/miniconda3/envs/jsp/lib/python3.11/random.py
Type: method
'''
random.choice('asjflkajflsajfljadslfjalskfj4324*U(&(&))')
'l'
str_list=['a','b','c','d','e',"1","2","3"]
s=""
s.join(str_list)
'abcde123'
tokens=[]
for i in range(5):
a=random.choice('ajfkldajflasjdflkjasdf')
print(a)
tokens.append(a)
tokens
j
a
d
a
s
['j', 'a', 'd', 'a', 's']
tokens=[]
for i in range(5):
a=random.choice('ajfkldajflasjdflkjasdf')
print(a)
tokens.append(a)
tokens
"".join(tokens)
d
j
k
l
f
'djklf'
tokens=[]
#input?
count=input("num:")#str
for i in range(int(count)):
a=random.choice('ajfkldajflasjdflkjasdf')
print(a)
tokens.append(a)
tokens
"".join(tokens)
num:3242
l
f
d
a
d
j
a
s
k
f
d
d
f
k
s
j
s
s
a
f
l
f
j
a
j
f
k
a
d
s
a
d
l
f
d
l
j
l
f
a
a
d
k
k
f
f
a
j
f
a
d
f
a
l
l
j
a
j
d
f
a
j
s
d
j
f
d
a
f
f
j
f
a
a
j
a
j
d
f
f
l
f
d
d
f
j
l
a
j
f
s
k
j
l
a
s
a
a
f
j
s
d
d
f
d
j
j
k
s
k
s
d
s
f
f
d
a
k
a
k
k
j
j
l
s
d
a
d
j
a
j
l
f
l
f
d
f
j
k
a
d
l
k
j
f
d
l
a
k
f
f
f
f
f
s
s
l
d
s
s
d
f
k
d
s
f
a
j
d
f
d
j
a
j
k
s
s
j
a
s
d
l
d
k
f
d
d
j
d
f
s
a
l
f
a
k
a
l
d
a
d
l
l
d
j
l
j
l
j
l
a
s
l
d
f
d
d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dadjajlflfdfjkadlkjfdlakfffffssldssdfkdsfajdfdjajkssjasdldkfddjdfsalfakaldadlldjljljlasldfdddlsslfjdkjdjddlaajfdddljdddssljsjsjfaaajdjdfssjljjddaaaadaaljdfkslfksdfdjflasklsfdjflajdaajkdjlfallajlladjkjlffajfafsdfasaajjaajdajljadajjkjkskakdlaladaallkjflflddlfjfajlsjakjdlfaajdaalfakjadadjdjjffajskjfldflsffsaldfjdlldsdfddjadsjjljddallfjaffsffljllffdajksjallafadaafjkasjalaadfsldldljkdslalfdffsfaakdafdjdlsaakljddjfadfkdddffljkfaasddkjfajdjssaffajlalajldaafjdsjlfjjksdldffjajsfjjffjajjafajslasjjadsaljfkfladsflljldajldflsjaajllkjfffjlfaklksjddjsdfdadljljfdfjffdlldaaljskaaklffdsdffalfkflsjjaasfjfadafjssdfjkkakfaadlddffjdafjjffdlasljjalfdkaajjslfjfasfajfdafkfjjddjassfladdfjdjfakfkkddjfajaajfdlakdajdafdjlfflddfjjajfdlajfsslfafjkskjasjajfkdafllslsdajsasfkjllafjlaajdfjfjfslafadjfkllsjdalasjfsdfsldfdjddfjsfaajfljjlfaaajdalffakakdakjjsjkkfljafajadslfslafffdjljddjdakjlssadjdssasfafaajldkfalkkfsfjdffjafffjfldjjjlflflafjajlkjkjkjkslsalsafklfassaadsafjdjkfjaajdffkaakjjsdjsajdaflsdjjdsfjkdlakjfldalaakfaljkfalksfflasakfkljkkffsssffksfdfladjldlljsldfjssfjdfaaaljdaajallsdfajjkfsfljdfjjjfajfskjldffjasdadskjjkaddjaklalfkksksjadllaksdjsdddjkjadajdaalldfffkddfaajfjsallfklfdlljjakdsaasadljjklasdaflfaaljfjllflfalffdlaaljdsafffflfjljafallaffjfdsjklkadjafdklsljlajjdjjdlaajfdkafjfjjfaaslskkdkdjdddjfajjljallajfjfsakjassddfasajdjksdldfsfssaakljksddklfkadakkffjlfllfllaakfjjljjakkfjfsljffjdajjffkdljsajdaffffsdjkdfdfllfajjfjjfddadajdjfldadddasjkfldjjjkjklallddkdssfajjsflddlsdffsfjasjfjsfkldfjjfdajafdafjsfkldllafsfllsaljljlkjjjdkssjfffjfdjdlldjsfksfjaafjldksflasdklajfffffjfajaadjdjljkkkafajjlkjllfdaaajasffsdfjfaadafjalakjkffdaakdkslsjjljasfjjflkffalaafjadajsldjaadfddsadafllakajddfsakdfadffdfskfljfasfldfajksljkffdakaajaaddsddjadlsafdkalfllakajafdlajjjfdjkjkaasldljjdaaaajjkfffaksfkajjfjafjaljallkkjffladjsakaaljdakfldfjdsafdaskjkajjssdalsjklasljljjjfsfkdsflkfadjdjafjlfflfsdjfkksadjdafjdjdfalkkasfflfdsjasjlaajfjaljjdaldlsfldjsasdfffjsjaasfjalddajjjslskafaklfalasafsasljlfakaffjdjaaflfasladjskaasjfajlaadldajaaflfjsdafjjaksfkjjfdjjslkaajlddsdfjsafdjsljsjfaalladddsaadfadfjjlsjllfaaklkjsdajjkkkasasfkjasfdjjfjajjdljsdkakaaljdaadlaflasjjfkdjjjfjafjaklkfddaadaadasdadjfdsffdkldslakkjsaafllasjlafsslaallladjdldfdkasdkfksjdadjakjjfdjjsjadaaajffddjkjddfajlajkdaajadsffjafdjfsfldaaaaaljajadddljaasajadjjllsjdajdjsdljajkdakafsjdfjdafjjjfkfdlafjfjjdjalfdlfdjjjfssjljfffsaajsjjfjlddajkfjdkkklfdsfkljddkfafddjkdsajljdsalkdfkjdafjffaljffkkldsalfdjfflffffjjdjlfadjlajdaffaladldkldjlsajlfjsffajlafasfklddjjjllaalakkfslallflkfljljakaafadljkjkadsfjffdfjffakfjlakjjsddllklsfjjjfffljdfkkafljklkaljkfkddjadjffddlkldkfjldljlakdskajjfajlsjjlajlsjalajdflafajaflafsdffsfffjdjjffjladsasaaldfsdajslkfadsaaaljjsdsfkadslljsjsjdafsffjddllfjdaklfdljdafffkfsjfjfdffalaldjdfdjlajdafjdldsfafjdajlsjasfajfdalaljakjddjfddjfsadlfflldajjkfjssdljfsljadsjkkksafsjjdljflkjslldlaajjlaaskfdfjfjllafalsfkdajdsfdajsfadffkfjlsfllddsfadkjkjajfkafajfklajadfjdjjflljalfjlkdlakafjafsldsdalddfafkafssalaafkkffdaljddkdjjfjsjasksfddlfajajaaaajjajsfffdjdadfjjkldakllljjfdjksdddlaafdadassdaaaklfjadfjddsakakdfadfjadffdfdaldalfadsfajlfkjlddjafjddajsdajsjdsfkllajjlllsjalfkjkfdjfjsj'
import string
string.digits?
string.ascii_letters
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
import string
str_from=string.ascii_letters+string.digits
tokens=[]
count=10
for i in range(count):
s=random.choice(str_from)
tokens.append(s)
"".join(tokens)
'z0VZlbE1Xr'
[x for x in range(8)]
[0, 1, 2, 3, 4, 5, 6, 7]
[random.choice('daffasdf') for x in range(5)]
['a', 'a', 'd', 'f', 'a']
[random.choice('dafafdsfas') for _ in range(5)]
['a', 'f', 'a', 'a', 's']
[random.choice(string.ascii_letters+string.digits) for _ in range(8)]
['i', 'm', '9', 'D', '4', 'D', 'n', '6']
import string
count=9
[random.choice(string.ascii_letters+string.digits) for _ in range(count)]
['l', 'q', '8', 'c', '9', 'g', 'g', 'w', 'q']
import string
count=9
"".join([random.choice(string.ascii_letters+string.digits) for _ in range(count)])
'9w4H14Kd6'