1、编码(encode) 字符串转字节串叫编码 str > bytes b = s.encode(encoding='utf-8') 2、解码(decode) 字节串转字符串叫解码 bytes > str s = b.decode(encoding='utf-8') ...
                            
                            
                                分类:
编程语言   时间:
2020-12-29 11:33:02   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                1、字节数组 可变的序列 2、字节数组的构造函数 bytearray bytearray() 创建空的字节数组 bytearray(整数) 用可迭代对象初始化一个字节数组 bytearray(整型可迭代对象) 生成n个值为0的字节数组 bytearray(字符串, encoding='utf-8') ...
                            
                            
                                分类:
编程语言   时间:
2020-12-29 11:31:15   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    前提 在做压力测试时,查看结果树的请求响应时,发现中文时乱码,以下时解决方法 打开jmeter\bin\jmeter.properties文件 找到 #sampleresult.default.encoding=ISO-8859-1 将注释打卡并且把编码格式改成 UTF-8 (sampleresul ...
                            
                            
                                分类:
其他好文   时间:
2020-12-29 11:16:35   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    TableLayout是ViewGroup 显示子View 行和列中的元素。 启动名为APP的新项目。 打开Resources/Layout/main.axml文件,并插入以下内容: <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns: ...
                            
                            
                                分类:
其他好文   时间:
2020-12-28 11:50:57   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    package com.svcm.util; import java.lang.reflect.Field; import javax.naming.NamingException; import org.springframework.aop.framework.ProxyFactory; imp ...
                            
                            
                                分类:
其他好文   时间:
2020-12-28 11:43:02   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                uvloopasyncio 的事件循环的替代方案效率默认大于asyncio的事件循环性能是更高的性能接近gopip install uvloopimport asyncioimport uvloopasyncio.set_event_loop_policy(uvloop.EventLoopPolic ...
                            
                            
                                分类:
数据库   时间:
2020-12-28 11:42:18   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    汉字 字母数字 UTF-8 3个字节或者4个字节,常用汉字是3个,冷门的是4个 1字节 GBK 2字节 2字节 GB2312 2字节 1字节 ...
                            
                            
                                分类:
其他好文   时间:
2020-12-28 11:05:27   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                # 一:库的管理 1、库的创建 语法:creat datase (if not exists )库名;# 不能重复,否则会报错 2、库的修改:rename database 原库名 to 新库名; 3、库修改字符集 alter database 库名 character set gbk/utf8;  ...
                            
                            
                                分类:
其他好文   时间:
2020-12-25 12:23:59   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                <?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:padding="16dp" android:orientation="vertical" android:background="@drawable/bg" android:l ...
                            
                            
                                分类:
其他好文   时间:
2020-12-25 12:11:47   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <LinearLayout android:padding="16dp" android:orientation="vertical" android:background="@drawable/bg" and ...
                            
                            
                                分类:
其他好文   时间:
2020-12-25 11:58:52   
                                阅读次数:
0